Iterating over a dictionary's sorted keys

Philip 'Yes, that's my address' Newton nospam.newton at gmx.li
Sat May 27 01:53:56 EDT 2000


On 26 May 2000 13:53:22 GMT, aahz at netcom.com (Aahz Maruch) wrote:

> It was a design decision to consider [].sort()
> and [].reverse() to work on the original list because the programmer
> should *always* explicitly request a copy of what may be a 100K element
> list.

But can I request a copy of the sorted list without giving the copy a
name, since I haven't got the comma operator available to me?

Cheers,
Philip
-- 
Philip Newton <nospam.newton at gmx.li>
If you're not part of the solution, you're part of the precipitate.



More information about the Python-list mailing list