views:

132

answers:

1

As some of you may know in python2.7/3.2 we'll get OrderedDict with PEP372 however one of the reason the PEP existed was because everyone did their own implementation and they were all sightly incompatible.

So which one of the 8 current implementations link text is backwards compatible with the 2.7 odict from python 2.7 in a way we can start using that now and depend on 2.7 in a couple of months?

+2  A: 

This package (for Python 2.4 or better) claims to be "A drop-in substitute for Py2.7's new collections.OrderedDict that works in Python 2.4-2.6.", but I have not checked that claim.

Alex Martelli
ohhh I totally missed that in my search in pypi. I think I searched for odict and not ordereddict.I'm pretty sure that one is the one as it's author is the same guy from the pep. I'll test it out and confirm here.
Jorge Vargas