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
signature.asc
Description: PGP signature
_______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com