#!/usr/local/bin/python2 class C: def m(self): print 1 a = C() b = C() b.m = int b.m()