Python supports weak references as first-class objects. There are two specific object types which directly implement weak references. The first is a simple reference object, and the second acts as a proxy for the original object as much as it can.
None or NULL. If ob
is not a weakly-referencable object, or if callback is not
callable, None, or NULL, this will return NULL and
raise TypeError.
New in version 2.2.
None or NULL. If ob is not
a weakly-referencable object, or if callback is not callable,
None, or NULL, this will return NULL and raise
TypeError.
New in version 2.2.
See About this document... for information on suggesting changes.