Iterating over a dictionary's sorted keys

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


In article <392f608b.260535311 at news.nikoma.de>,
Philip 'Yes, that's my address' Newton <nospam.newton at gmx.li> wrote:
>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?

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

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
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