vrml.weakkeydictfix
index
/home/mcfletch/pylive/vrml/weakkeydictfix.py

Module providing patched weakkeydictionary operation

 
Modules
       
weakref

 
Classes
       
WeakKeyDictionary(UserDict)
WeakKeyDictionary

 
class WeakKeyDictionary(WeakKeyDictionary)
    Sub-class to work around error in WeakKeyDictionary implementation
 
Python 2.2.2 and 2.2.3c1 both have an annoying
problem in their __delitem__ for the
WeakKeyDictionary class.  This class provides
a work-around for it.
 
 
Method resolution order:
WeakKeyDictionary
WeakKeyDictionary
UserDict

Methods defined here:
__delitem__(self, key)
Overridden delitem to avoid scanning
__init__(self, dict=None)
Initialize the WeakKeyDictionary
 
dict -- previously-existing weak key records or
    None to create a new dictionary

Methods inherited from WeakKeyDictionary:
__contains__(self, key)
__getitem__(self, key)
__iter__(self)
__repr__(self)
__setitem__(self, key, value)
copy(self)
get(self, key, default=None)
has_key(self, key)
items(self)
iteritems(self)
iterkeyrefs(self)
Return an iterator that yields the weak references to the keys.
 
The references are not guaranteed to be 'live' at the time
they are used, so the result of calling the references needs
to be checked before being used.  This can be used to avoid
creating references that will cause the garbage collector to
keep the keys around longer than needed.
iterkeys(self)
itervalues(self)
keyrefs(self)
Return a list of weak references to the keys.
 
The references are not guaranteed to be 'live' at the time
they are used, so the result of calling the references needs
to be checked before being used.  This can be used to avoid
creating references that will cause the garbage collector to
keep the keys around longer than needed.
keys(self)
pop(self, key, *args)
popitem(self)
setdefault(self, key, default=None)
update(self, dict=None, **kwargs)

Methods inherited from UserDict:
__cmp__(self, dict)
__len__(self)
clear(self)
values(self)

Class methods inherited from UserDict:
fromkeys(cls, iterable, value=None) from __builtin__.classobj

 
Data
        __file__ = '/home/mcfletch/pylive/vrml/weakkeydictfix.pyc'
__name__ = 'vrml.weakkeydictfix'
__package__ = 'vrml'