On Sat, 21 Mar 2020 at 06:42, Steven D'Aprano <st...@pearwood.info> wrote:
>
> On Sat, Mar 21, 2020 at 12:16:29PM +0900, Stephen J. Turnbull wrote:
>
> > The way I think of pprint (FWIW, YMMV) is as a debug utility.
>
> Oh, that's interesting. I mostly think of pretty-printing as a display
> utility aimed at end users.

I agree with Stephen (ph) - debugging. For end user display, I'd
typically want to write a custom display function. For debugging, I
want a readable display with as little effort as possible (debugging
is hard enough without having to write display routines or put up with
unreadable data dumps).

Very much personal preference, though.

Paul
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/5KH6HRU2TFRBWJNFL34GZ36DSJDC7TNB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to