Re: sorting dictionary keys?
From: Paul Rubin (//phr.cx_at_NOSPAM.invalid)
Date: 11/30/03
- Next message: Mike Abel: "Re: Tkinter "Expected boolean value""
- Previous message: Francis Avila: "Re: Need some advice"
- In reply to: Raymond Hettinger: "Re: sorting dictionary keys?"
- Next in thread: Emile van Sebille: "Re: sorting dictionary keys?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Mike Abel: "Re: Tkinter "Expected boolean value""
- Previous message: Francis Avila: "Re: Need some advice"
- In reply to: Raymond Hettinger: "Re: sorting dictionary keys?"
- Next in thread: Emile van Sebille: "Re: sorting dictionary keys?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]