Documentation
The __weakref__ descriptor on an instance of user-defined classes is a weak reference (singular instance of weakref.ReferenceType, preferring the unique one with no callback passed to the constructor if it exists and the most recently created one if not in case of multiple, and None otherwise. However, it is documented as a "list of weak references to the object".
Documentation
The
__weakref__descriptor on an instance of user-defined classes is a weak reference (singular instance ofweakref.ReferenceType, preferring the unique one with no callback passed to the constructor if it exists and the most recently created one if not in case of multiple, andNoneotherwise. However, it is documented as a "list of weak references to the object".