[Python-ideas] pprint in displayhook
solipsis at pitrou.net
Fri Sep 27 15:59:51 CEST 2013
Le Fri, 27 Sep 2013 16:55:12 +0300,
Serhiy Storchaka <storchaka at gmail.com> a
> 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
More information about the Python-ideas