(self, func, method)
return modfunc
Generate convenience methods for specified `method`.
Generate convenience methods for specified `method`.
Generate convenience methods for specified method .
def _method_creator(self, func, method):
        """Generate convenience methods for specified `method`."""
        @wraps(func)
        def modfunc(self, *args, **kwargs):
            return getattr(self, method)(func, *args, **kwargs)

        return modfunc
def _method_creator ( self , func , method ) : @ wraps ( func ) def modfunc ( self , * args , * * kwargs ) : return getattr ( self , method ) ( func , * args , * * kwargs ) return modfunc