Message169204
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. |
|
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 | |
|