[Python-ideas] pprint in displayhook

Antoine Pitrou solipsis at pitrou.net
Fri Sep 27 12:15:18 CEST 2013


Le Fri, 27 Sep 2013 13:07:18 +0300,
Serhiy Storchaka <storchaka at gmail.com> a
écrit :
> What are you think about using pprint.pprint() to output the result
> of evaluating an expression entered in an interactive Python session
> (and in IDLE)?

I'm not sure I like this idea.  AFAICT pprint() isn't bullet-proof,
and it would be a pain to debug if it failed to display some objects
properly.

Regards

Antoine.




More information about the Python-ideas mailing list