(fn)
return False
Returns True if fn is a bound method, regardless of whether
    fn was implemented in Python or in C.
Returns True if fn is a bound method, regardless of whether
    fn was implemented in Python or in C.
Returns True if fn is a bound method regardless of whether fn was implemented in Python or in C .
def _is_bound_method(fn):
    """
    Returns True if fn is a bound method, regardless of whether
    fn was implemented in Python or in C.
    """
    if inspect.ismethod(fn):
        return True
    if inspect.isbuiltin(fn):
        self = getattr(fn, '__self__', None)
        return not (inspect.ismodule(self) or (self is None))
    return False
def _is_bound_method ( fn ) : if inspect . ismethod ( fn ) : return True if inspect . isbuiltin ( fn ) : self = getattr ( fn , '__self__' , None ) return not ( inspect . ismodule ( self ) or ( self is None ) ) return False