I want make a method like in the following example
Thanks
class foo(): @classmethod @instancemethod # problem:NameError: name 'instancemethod' is not defined def method(cls, self): print("method class =", cls) print("method object =", self) example = foo() example.method() #___output___ # method class = ....... # method object = .....how can I make it in other way ?
Thanks