This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients flox
Date 2010-02-01.20:20:37
SpamBayes Score 5.088486e-06
Marked as misclassified No
Message-id <1265055639.83.0.329542976831.issue7831@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-02-01 20:20:40floxsetrecipients: + flox
2010-02-01 20:20:39floxsetmessageid: <1265055639.83.0.329542976831.issue7831@psf.upfronthosting.co.za>
2010-02-01 20:20:37floxlinkissue7831 messages
2010-02-01 20:20:37floxcreate