Staging: this is not the live site, pydocs.org.
weakref
Weak reference support for Python.
This module is an implementation of PEP 205:
https://peps.python.org/pep-0205/
© Python Software Foundation. PSF License Version 2 · Official docs ↗
Symbols in weakref
f
- finalize
- Class for finalization of weakrefable objects
g
- getweakrefs
- Return a list of all weak reference objects pointing to 'object'.
p
- proxy
- Create a proxy object that weakly references 'object'.
- ProxyType
- The type object for proxies of objects which are not callable.
- ProxyTypes
- Sequence containing all the type objects for proxies.
r
- ref
- Return a weak reference to object.
w
- WeakMethod
- A custom `weakref.ref` subclass which simulates a weak reference to a bound method, working around the lifetime problem of bound methods.
- WeakSet
- Set class that keeps weak references to its elements.