[Python-Dev] Proposal: add odict to collections
Nick Coghlan
ncoghlan at gmail.com
Mon Jun 16 11:29:13 CEST 2008
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 [1].
Cheers,
Nick.
[1] http://bugs.python.org/issue1371075
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-Dev
mailing list