Florent Xicluna <la...@yahoo.fr> added the comment: As a replacement, it could be useful to propose a "universal key" for sort() method and sorted() builtin.
>>> lst = sorted([{2: '3'}, 1, '05'], key=list.ukey) >>> There's a reference implementation in the pprint._safe_key private class. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7831> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com