Casebash Casebash - 10 months ago 41
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

I installed ordereddict on python 2.6 with pip

pip install ordereddict