Casebash Casebash - 1 year ago 66
Python Question

OrderedDict for older versions of python

Ordered dictionaries are extremely useful structures, but unfortunately these are quite recent only working in versions from 3.1 and 2.7. How can I use an ordered dictionary in older versions?

Answer Source

I installed ordereddict on python 2.6 with pip

pip install ordereddict