def deleter(self, func):
        """Register a delete function for the DynamicProperty

        This function may only take one argument, self.
        """
        if not callable(func):
            raise TypeError('deleter must be callable function')
        if hasattr(func, '__code__') and func.__code__.co_argcount != 1:
            raise TypeError('deleter must be a function with two arguments')
        if func.__name__ != self.name:
            raise TypeError('deleter function must have same name as getter')
        self._del_func = func
        return self
def deleter ( self , func ) : if not callable ( func ) : raise TypeError ( 'deleter must be callable function' ) if hasattr ( func , '__code__' ) and func . __code__ . co_argcount != 1 : raise TypeError ( 'deleter must be a function with two arguments' ) if func . __name__ != self . name : raise TypeError ( 'deleter function must have same name as getter' ) self . _del_func = func return self
Register a delete function for the DynamicProperty

        This function may only take one argument, self.