WeakMethod is used in Clock class, to prevent the clock of taking memory if the object is deleted. Check examples/core/clock_method.py for more informations.
This WeakMethod class is taken from the recipe http://code.activestate.com/recipes/81253/, based on the nicodemus version. (thanks to him !)
Bases: object
Implementation of weakref for function and bounded method.
Returns True if the referenced callable was a bound method and the instance no longer exists. Otherwise, return False.