Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:

Ben, I don't think there is any value is opening more issues like 
pprint-doesn't-handle-object-x (named tuples, defautdicts, deques, generators, 
etc).

As it is currently designed, pprint doesn't offer usable hooks and it is not 
easy to build-out to handle new object types.  For the most part, users just 
cast to a list before calling pprint.

ISTM, the RightAnswer(tm) is to overhaul pprint and add hooks for handling new 
objects.  Ideally, there would be flexible print options and reprlib-like 
features for limiting output and for marking recursive constructs with "..."

It would be better to start fresh than to continually pile on to the current 
hodge-podge.

----------
nosy: +rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5131>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to