Dictionary sorting

Chris Kaynor ckaynor at zindagigames.com
Thu Nov 3 15:13:46 EDT 2011


Note that there are a number of recipes available for free online, and
if you are using a newer version of Python (2.7 or higher), the
collections module includes an OrderedDict class
(http://docs.python.org/library/collections.html#collections.OrderedDict
- this also include a library for Python 2.4 and higher as well). Note
that there are a lot of different possible behaviors, so any
particular recipe may or may not behave exactly as you desire.

Chris



On Thu, Nov 3, 2011 at 12:00 PM, Scott Ware <scottdware at gmail.com> wrote:
> Great! Thanks, John for the quick response!
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list