On 10/08/05, Simon Brunning <[EMAIL PROTECTED]> wrote:
On 8/10/05, Chris Cioffi <[EMAIL PROTECTED]> wrote:
> I have lots of code that looks like:
> keys = mydict.keys()
> keys.sort()
keys = sorted(mydict.keys())
While the sorted() built in addressed (yet another) community desire, I don't think this addresses the underlying expectation of getting dictionary keys in some order.
It works, but it feel like a kludge to me. <shrug>
Chris
--
"Obviously crime pays, or there'd be no crime." -- G. Gorden Liddy
--
"Obviously crime pays, or there'd be no crime." -- G. Gorden Liddy
-- http://mail.python.org/mailman/listinfo/python-list