Author serhiy.storchaka
Recipients fdrake, pitrou, rhettinger, serhiy.storchaka, terry.reedy
Date 2013-09-29.20:22:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380486138.19.0.292024315147.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).

See a comment at the start of the Lib/_sitebuiltins.py file. Yes, importing sys in the function is redundant.

> For instance, try list(range(40)) with the two options.

Well, I have opened issue19132 for this.

> This is not to mention doctest and other test breakage.

AFAIK doctests doesn't test output longer than 80 characters.

> I believe the majority consensus on python-ideas was to reject this until pprint is much improved, and then reconsider.

There are other pprint-related issue which are opened long time without any progress (e.g. issue7434). I intend making progress on issues which are required for fixing pprint enough to be reasonable replacement for displayhook.
History
Date User Action Args
2013-09-29 20:22:18serhiy.storchakasetrecipients: + serhiy.storchaka, fdrake, rhettinger, terry.reedy, pitrou
2013-09-29 20:22:18serhiy.storchakasetmessageid: <1380486138.19.0.292024315147.issue19103@psf.upfronthosting.co.za>
2013-09-29 20:22:18serhiy.storchakalinkissue19103 messages
2013-09-29 20:22:17serhiy.storchakacreate