Georg Brandl <ge...@python.org> added the comment:

A simple fix is to use key=lambda x: (id(type(x)), x).  However, that
obviously doesn't work with values of different, but orderable types.

At the moment, I don't see how the Python 2 sort could be implemented
without a cmp() argument to sorted().

----------
nosy: +georg.brandl
priority:  -> high

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

Reply via email to