[Python-ideas] pprint in displayhook
storchaka at gmail.com
Fri Sep 27 16:19:55 CEST 2013
27.09.13 16:59, Antoine Pitrou написав(ла):
> Le Fri, 27 Sep 2013 16:55:12 +0300,
> Serhiy Storchaka <storchaka at gmail.com> a
> écrit :
>> 27.09.13 16:05, Antoine Pitrou написав(ла):
>>>> Wouldn't this also invalidate the millions (I'm guessing) of
>>>> examples in blogs, how-tos, etc. that show interactive command
>>>> line examples? I'm sympathetic, but I don't think it's worth it.
>>> Oh and how about... doctest? :-)
>> Doctest restores sys.__displayhook__.
> I'm thinking more about the consistency of doctest output with actual
> interpreter output. One of the selling points of doctest is that it
> helps showcase API behaviour by showing interactive interpreter
> snippets. If the actual output starts being different, it might confuse
Most doctests are significant shorter 80 columns. Actually doctest can't
be longer without violating PEP8.
More information about the Python-ideas