Message198646
> (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. |
|
Date |
User |
Action |
Args |
2013-09-29 20:22:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, fdrake, rhettinger, terry.reedy, pitrou |
2013-09-29 20:22:18 | serhiy.storchaka | set | messageid: <1380486138.19.0.292024315147.issue19103@psf.upfronthosting.co.za> |
2013-09-29 20:22:18 | serhiy.storchaka | link | issue19103 messages |
2013-09-29 20:22:17 | serhiy.storchaka | create | |
|