21 Mar
2020
21 Mar
'20
3:11 p.m.
On Sat, 21 Mar 2020 at 06:42, Steven D'Aprano
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