[Python-Dev] dict.sortedkeys()
Robert Brewer
fumanchu at amor.org
Sat Apr 17 15:21:18 EDT 2004
I wrote:
> I'm willing to pay money for someone to write {}.sortedkeys() and/or
> sets.Set().sorteditems() (since IANACH (I am not a C
> hacker)). I'm just
> *really* tired of writing what should be a one-liner in three lines:
... e.g.
dkeys = d.keys()
dkeys.sort()
for key in dkeys:
instead of:
for key in d.sortedkeys():
Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org
More information about the Python-Dev
mailing list