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 <>
> (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/ 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.
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: <>
2013-09-29 20:22:18serhiy.storchakalinkissue19103 messages
2013-09-29 20:22:17serhiy.storchakacreate