Armin Ronacher wrote:
Armin Ronacher <armin.ronacher <at> active-4.com> writes:
There are far more responses for that topic than I imagined so I would love to write a PEP about that topic, incorporating the ideas/questions and suggestions discussed here.
There is now a PEP for the ordered dict:
- PEP: http://www.python.org/dev/peps/pep-0372/
- Thread on comp.lang.python: http://thread.gmane.org/gmane.comp.python.general/577894
Another use case: in 2.6, RawConfigParser accepts a dict_type argument that allows an application to set the type of dictionary used internally. The motivation for this addition was expressly to allow users to provide an ordered dictionary .