[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys
Anton Barkovsky
report at bugs.python.org
Thu Jul 19 01:24:54 CEST 2012
Anton Barkovsky <swarmer.pm at gmail.com> added the comment:
Here's a patch with fix and tests.
Note that class objects are not comparable and have the same type so they
fall back on sorting by id. Should we sort them by name as a special case instead?
----------
keywords: +patch
Added file: http://bugs.python.org/file26433/pprint_fix.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10017>
_______________________________________
More information about the Python-bugs-list
mailing list