[issue7434] general pprint rewrite

Nick Coghlan report at bugs.python.org
Sat Jan 4 15:46:57 CET 2014


Nick Coghlan added the comment:

With PEP 443 added for Python 3.4, I believe Łukasz intended to pursue a new pprint implementation based on functools.singledispatch.

That has obviously missed feature freeze for Python 3.4, but it's still a reasonable idea to pursue for 3.5.

In addition to OrderedDict (mentioned above) and defaultdict (which was mentioned in issue 5131), an updated pprint would also allow us to add support for the new dict view types, collections.deque, etc.

Ideally, we'd also have a standard lazy import mechanism in 3.5, so these definitions could go in the collections module, but only installed if pprint was also imported. Otherwise, having pprint depend on collections would likely be preferable to having the dependency run the other way.

----------
nosy: +ncoghlan
versions: +Python 3.5 -Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7434>
_______________________________________


More information about the Python-bugs-list mailing list