when running under >=python-3.0. (trunk r12632)
svn path=/main/branches/2.1.6/; revision=12905
def clear(self):
self.data.clear()
+ if sys.hexversion >= 0x3000000:
+ keys = __iter__
+
class ProtectedDict(MutableMapping):
"""
given an initial dict, this wraps that dict storing changes in a secondary dict, protecting
DeprecationWarning)
return key in self
+ if sys.hexversion >= 0x3000000:
+ keys = __iter__
+
class LazyLoad(Mapping):
"""
Lazy loading of values for a dict
self.pull = None
return key in self.d
+ if sys.hexversion >= 0x3000000:
+ keys = __iter__
+
_slot_dict_classes = weakref.WeakValueDictionary()
def slot_dict_class(keys, prefix="_val_"):
if sys.hexversion >= 0x3000000:
items = iteritems
+ keys = __iter__