Re: sorting dictionary keys?

From: Paul Rubin (//phr.cx_at_NOSPAM.invalid)
Date: 11/30/03


Date: 29 Nov 2003 23:00:34 -0800


"Raymond Hettinger" <vze4rx4y@verizon.net> writes:
> Py2.4 will have a classmethod called list.sorted() that accepts any
> iterable as an argument and returns a new sorted list as a result.
> It can be used anywhere you can use an expression (function call
> arguments, lambdas, list comps, etc).

Oh cool, although it means allocating more memory for the new list.