Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo:
- def method1(self, arg):
- print(self, arg)
- # something like this variable, but which can be called with instantiated class
- func = Foo.method1
- foo = Foo()
- foo.func(1) # I want to call it in a similar way to this
- func(foo, 1)
Add Comment
Please, Sign In to add comment