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 -- http://mail.python.org/mailman/listinfo/python-list