#!/usr/local/bin/python2 class C(object): def __call__(self): return 1 def m(self): return 3 c = C() c.m = c.__call__ = lambda: 2 print c(), c.__call__(), c.m()