[Python-3000] Ordered mapping type for Python 3000?
frank-python at benkstein.net
Tue Mar 27 17:09:47 CEST 2007
One thing that has come up quite often IIRC is the request for an
ordered mapping type. It would like to propose to add such a type to
Python 3000 and make it immutable, to prevent all kind of problems that
would occur otherwise. Other than that it should behave just
the same as dictionaries for all non-modifying operations.
Furthermore it would be nice to have this new type as the default type
for **-style keyword parameters. First it would make creating the
instances of this new type a lot easier and second it would remove the
asymmetry in having a immutable *args and a mutable **kwds.
As far as backwards compatibilty is concerned this should only affect
functions that rely on a mutable kwds and this could be easily fixed by
explicitely creating a dict from the keywords parameter at the begin
of the function.
Comments? Should I try to wrap this up as a PEP?
GPG (Mail): 7093 7A43 CC40 463A 5564 599B 88F6 D625 BE63 866F
GPG (XMPP): 2243 DBBA F234 7C5A 6D71 3983 9F28 4D03 7110 6D51
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-3000/attachments/20070327/2086fba9/attachment.pgp
More information about the Python-3000