class MyClass(object): def method(self): pass MyClass().method.__