class Foo(object):

    def __init__(self):
        pass
get_info(__init__)

def bar():
    pass
get_info(Foo.__init__)
get_info(Foo().__init__)
get_info(bar)
How to distinguish between a function and a class method?