(self)
Removes added attributes while leaving original attributes.
Removes added attributes while leaving original attributes.
Removes added attributes while leaving original attributes .
def resetcache(self):
        "Removes added attributes while leaving original attributes."
        # Function is really about resetting delegator dict
        # to original state.  Cache is just a means
        for key in self.__cache:
            try:
                delattr(self, key)
            except AttributeError:
                pass
        self.__cache.clear()
def resetcache ( self ) : # Function is really about resetting delegator dict # to original state.  Cache is just a means for key in self . __cache : try : delattr ( self , key ) except AttributeError : pass self . __cache . clear ( )