WeakMethod: implementation of weakref for function and bounded method.
This class 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 !)