[Python-Dev] LinkedHashSet/LinkedHashMap equivalents

Raymond Hettinger python at rcn.com
Thu Mar 10 15:03:35 CET 2005


[BJörn Lindqvist]
> 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)

This doesn't work.  The kwargs are already turned into a regular
dictionary before ordereddict sees it.


Raymond Hettinger



More information about the Python-Dev mailing list