<p dir="ltr"><br>
On 27 Sep 2013 21:58, "Antoine Pitrou" <<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>> wrote:<br>
><br>
> Le Fri, 27 Sep 2013 14:15:13 +0300,<br>
> Serhiy Storchaka <<a href="mailto:storchaka@gmail.com">storchaka@gmail.com</a>> a<br>
> écrit :<br>
> > 27.09.13 13:15, Antoine Pitrou написав(ла):<br>
> > > Le Fri, 27 Sep 2013 13:07:18 +0300,<br>
> > > Serhiy Storchaka <<a href="mailto:storchaka@gmail.com">storchaka@gmail.com</a>> a<br>
> > > écrit :<br>
> > >> What are you think about using pprint.pprint() to output the result<br>
> > >> of evaluating an expression entered in an interactive Python<br>
> > >> session (and in IDLE)?<br>
> > ><br>
> > > I'm not sure I like this idea.  AFAICT pprint() isn't bullet-proof,<br>
> > > and it would be a pain to debug if it failed to display some objects<br>
> > > properly.<br>
> ><br>
> > We can set displayhook in site.py and for debug restore it from<br>
> > sys.__displayhook__. This is not more painful than use readline and<br>
> > enable completion by default.<br>
><br>
> :-) I don't know, I'll let other people experiment with it.</p>
<p dir="ltr">displayhook uses repr by default. Even normal print would make numbers and numeric string output ambiguous.</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> Regards<br>
><br>
> Antoine.<br>
><br>
><br>
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
</p>