"Ordered" dicts

Simon Brunning simon.brunning at gmail.com
Wed Aug 10 15:48:40 CEST 2005


On 8/10/05, Chris Cioffi <evenprimes at gmail.com> wrote:
> I have lots of code that looks like: 
>     keys = mydict.keys() 
>     keys.sort() 

keys = sorted(mydict.keys())

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list