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