for UserDict.DictMixin so that code converted via 2to3 will run.
"""
+ __slots__ = ()
+
def __iter__(self):
return iter(self.keys())
A mutable vesion of the Mapping class.
"""
+ __slots__ = ()
+
def clear(self):
for key in list(self):
del self[key]
http://bugs.python.org/issue2876
"""
+ __slots__ = ('data',)
+
def __init__(self, *args, **kwargs):
self.data = {}
class OrderedDict(UserDict):
+ __slots__ = ('_order',)
+
def __init__(self, *args, **kwargs):
self._order = []
UserDict.__init__(self, *args, **kwargs)