C
Cosmia Luna
class Foo(object):
def bar(self):
return 'Something'
func = Foo().bar
if type(func) == <type 'instancemethod'>: # This should be always true
pass # do something here
What should type at <type 'instancemethod'>?
Thanks
Cosmia
def bar(self):
return 'Something'
func = Foo().bar
if type(func) == <type 'instancemethod'>: # This should be always true
pass # do something here
What should type at <type 'instancemethod'>?
Thanks
Cosmia