Message169204
| Author |
eric.araujo |
| Recipients |
eric.araujo, ezio.melotti, maker |
| Date |
2012年08月27日.15:38:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1346081919.52.0.319338795869.issue15791@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
One could argue that since print does respect the terminal encoding if sys.stdin is a tty, pydoc could be as smart and do the same. I think the problem comes from the use of a pager, which means a subprocess, which mean that the streams are not ttys and the encoding can’t be detected. print doesn’t work either with pipes: python -c "import foo; print foo.__author__" | cat
So I fear that this bug may only get a doc note. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年08月27日 15:38:39 | eric.araujo | set | recipients:
+ eric.araujo, ezio.melotti, maker |
| 2012年08月27日 15:38:39 | eric.araujo | set | messageid: <1346081919.52.0.319338795869.issue15791@psf.upfronthosting.co.za> |
| 2012年08月27日 15:38:39 | eric.araujo | link | issue15791 messages |
| 2012年08月27日 15:38:38 | eric.araujo | create |
|