Dictionaries again - where do I make a mistake?

Tim Chase python.list at tim.thechases.com
Thu Oct 19 17:54:40 CEST 2006


>  but I can not create Newdict to be sorted properly.
> 
> Where do I make a mistake?

By assuming that dictionaries *can* be sorted.

For more reading:
http://aspn.activestate.com/ASPN/Python/Cookbook/Recipe/52306
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/107747

They're intrinsically an unsorted datatype.

-tkc






More information about the Python-list mailing list