class Robot: def func(self): self.Num = 20
>>> print Robot.func
<unbound method Robot.func>
>>> r = Robot() >> r.func.im_self.func
<bound method Robot.func of <__main__.Robot instance at 0x0000000002F81E48>>
func
Robot.func
r.func
Robot.func(r)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)