I would LOVE for **kwargs to be an ordered dict. It would allow me to
write code like this:

.class MyTuple:
.    def __init__(self, **kwargs):
.        self.__dict__ = ordereddict(kwargs)
.
.    def __iter__(self):
.        for k, v in self.__dict__.items():
.            yield v
.
.t = MyTuple(r = 99, g = 12, b = 4)
.r, g, b = t
.print r, g, b

I know it goes beyond the original intention of the proposal, but I
figure I'd mention it anyway because the unorder of **kwargs has been
bugging me alot.

-- 
mvh Björn
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to