def __init__(self, obj, attr_name):
        '''
        Initialize with an object that is a method wrapper.
        '''
        super(StubWrapperDescriptor, self).__init__(obj, attr_name)
        self._orig = getattr(self._obj, self._attr)
        setattr(self._obj, self._attr, self)
def __init__ ( self , obj , attr_name ) : super ( StubWrapperDescriptor , self ) . __init__ ( obj , attr_name ) self . _orig = getattr ( self . _obj , self . _attr ) setattr ( self . _obj , self . _attr , self )
Initialize with an object that is a method wrapper.