This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients fdrake, pitrou, serhiy.storchaka, terry.reedy
Date 2013-09-28.21:52:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380405125.83.0.734415614729.issue19103@psf.upfronthosting.co.za>
In-reply-to
Content
(in the patch, import of sys and pprint should be done once at module level and not repeated with every line of interactive output).

> pprint.pprint() produces more human readable output than print(repr()) which is used in sys.displayhook()

Only sometimes, and when it is not, the result can be *much* worse. For instance, try list(range(40)) with the two options. On windows, pprint.pprint(list(range(300))) will not even fit in the default 300 line output buffer of the standard interpreter. This is not to mention doctest and other test breakage. I believe the majority consensus on python-ideas was to reject this until pprint is much improved, and then reconsider. I agree with that.

As I said on the list, I think this is more feasible for environments (like Idle) where it could be turned on and off, or invoked to re-display an output where pprint *would* be better.
History
Date User Action Args
2013-09-28 21:52:05terry.reedysetrecipients: + terry.reedy, fdrake, pitrou, serhiy.storchaka
2013-09-28 21:52:05terry.reedysetmessageid: <1380405125.83.0.734415614729.issue19103@psf.upfronthosting.co.za>
2013-09-28 21:52:05terry.reedylinkissue19103 messages
2013-09-28 21:52:05terry.reedycreate