sorting dictionary keys?

Paul Rubin http
Sun Nov 30 08:00:34 CET 2003

"Raymond Hettinger" <vze4rx4y at> 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.

More information about the Python-list mailing list