Iterating over a dictionary's sorted keys

Aahz Maruch aahz at
Mon May 29 12:10:08 CEST 2000

In article <392f608b.260535311 at>,
Philip 'Yes, that's my address' Newton <nospam.newton at> wrote:
>On 26 May 2000 13:53:22 GMT, aahz at (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?

Not without a function call.
                      --- Aahz (Copyright 2000 by aahz at

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

"Yes, but would you kick any of them out of bed?"
"That depends: do we have to do anything with them in the bed, or
are they just in the bed?" -- AM/SJM

More information about the Python-list mailing list