Message291197
| Author |
serhiy.storchaka |
| Recipients |
fdrake, rhettinger, serhiy.storchaka |
| Date |
2017年04月05日.21:58:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1491429491.32.0.705381184548.issue29996@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
* In IDLE sys.stdout.isatty() returns True, but sys.stdout.fileno() raises an exception. Terminal width can't be determined and the default 80 is used.
* You always can pass explicit width to pprint. This may be needed even with default width 80. Now on wide a terminal wider 80 columns you have unused space than can cause unneeded wrapping. On a terminal narrower 80 columns the pprint() output is formatted incorrectly and is wrapped twice: by pprint() and by terminal.
* The output in doctests is not connected to a terminal. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年04月05日 21:58:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, fdrake, rhettinger |
| 2017年04月05日 21:58:11 | serhiy.storchaka | set | messageid: <1491429491.32.0.705381184548.issue29996@psf.upfronthosting.co.za> |
| 2017年04月05日 21:58:11 | serhiy.storchaka | link | issue29996 messages |
| 2017年04月05日 21:58:11 | serhiy.storchaka | create |
|