"Ordered" dicts

Simon Brunning simon.brunning at gmail.com
Wed Aug 10 09:48:40 EDT 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