On Sat, Mar 19, 2011 at 11:17:33AM -0400, todd rme wrote:
Python 2.7 has the very useful ordereddict data type in its
collections module. This is mostly like a standard dictionary, but
maintains a consistent ordering of its elements rather than returning
them in an arbitrary order. I have found it very useful for a number
of tasks. It is fully backwards compatible with 2.6 at least, I was
able to just use it straight from the 2.7 collections module source
(since at least that part is written in pure python). It would be
nice if this was either added to the collections module or the Python
2.7 Compatibility module of kitchen.
I've linked to the ordereddict module that's available on pypi in the
latest
documentation:
http://pypi.python.org/pypi/ordereddict
I'd like to avoid reinventing the wheel. But I'm not sure what the best
method of making these modules more visible is. Do you think the
documentation is sufficient? Should we import them into our namespace?
Should we link to those other modules in our documentation and docstrings?
-Toshio