¡@

Home 

python Programming Glossary: cobj.foo

python bound and unbound method object

http://stackoverflow.com/questions/13348031/python-bound-and-unbound-method-object

object def foo self pass cobj C print id C.foo #1 print id cobj.foo #2 a C.foo b cobj.foo print id a #3 print id b #4 and the output.. cobj C print id C.foo #1 print id cobj.foo #2 a C.foo b cobj.foo print id a #3 print id b #4 and the output is.. 5671672 5671672.. then discard the method object again . Then you look up id cobj.foo a new method object created that re uses the now freed memory..