[issue3976] pprint._safe_repr is not general enough in one instance
Alexander Belopolsky
report at bugs.python.org
Tue Jan 6 20:12:24 CET 2009
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
The proposed patch appears to give up sorting by key,value altogether if
there are a few incomparable items. It would be better to group items by
type and sort within each group. For example,
pprint({1:1,2:2,A():3,A():4}) should print int:int items in order.
----------
nosy: +belopolsky
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3976>
_______________________________________
More information about the Python-bugs-list
mailing list