[Python-3000] Ordered mapping type for Python 3000? (original) (raw)
Frank Benkstein frank-python at benkstein.net
Tue Mar 27 17:09:47 CEST 2007
- Previous message: [Python-3000] Draft PEP for New IO system
- Next message: [Python-3000] Ordered mapping type for Python 3000?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
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?
Best regards Frank Benkstein.
-- 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... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.python.org/pipermail/python-3000/attachments/20070327/2086fba9/attachment.pgp
- Previous message: [Python-3000] Draft PEP for New IO system
- Next message: [Python-3000] Ordered mapping type for Python 3000?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]