[issue3976] pprint._safe_repr is not general enough in one instance
Georg Brandl
report at bugs.python.org
Sun Sep 20 19:17:53 CEST 2009
Georg Brandl <georg at python.org> added the comment:
Also note that this patch will not sort sequences of mixed types where
some types are intercomparable "correctly" (in the way that Python 2
did), e.g. for
{1:2, 2:3, 'a':4, 1.5: 5}
the 1.5 key will not be placed between the 1 and 2 keys.
I'm not aware of a way to implement that behavior without support for a
general comparison function instead of a DSU key function.
----------
nosy: +georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3976>
_______________________________________
More information about the Python-bugs-list
mailing list