On this page
weakref.ReferenceType
Prev: weakref.ref | Up: weakref | Next: weakref.WeakKeyDictionary
Rel: weakref.CallableProxyType, weakref.finalize, weakref.getweakrefcount, weakref.getweakrefs
Ref: docs.python.org — weakref.ReferenceType
Tags: #public #python3 #stdlib #weakref
Import
import weakref
from weakref import ReferenceType
Signature & Overview
weakref.ReferenceType(...)
weakref.ReferenceType class.
Usage
import weakref
assert weakref.ReferenceType is weakref.ref
Gotchas
- Type of
weakref.ref(obj).
REPL Inspect
from weakref import ReferenceType
help(ReferenceType)
Linked from
Related notes
- tuts/python3/stdlib_module/weakref/ref Linked here; links to this page; shared tags: #stdlib, #weakref
- tuts/python3/stdlib_module/weakref/WeakKeyDictionary Linked here; links to this page; shared tags: #stdlib, #weakref
- tuts/python3/stdlib_module/weakref Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/weakref/CallableProxyType Linked here; shared tags: #stdlib, #weakref
- tuts/python3/stdlib_module/weakref/finalize Linked here; shared tags: #stdlib, #weakref
- tuts/python3/stdlib_module/weakref/getweakrefcount Linked here; shared tags: #stdlib, #weakref
- tuts/python3/stdlib_module/weakref/getweakrefs Linked here; shared tags: #stdlib, #weakref
- tuts/python3/stdlib_module/weakref/proxy shared tags: #stdlib, #weakref
- tuts/python3/stdlib_module/weakref/ProxyType shared tags: #stdlib, #weakref
- tuts/python3/stdlib_module/weakref/WeakMethod shared tags: #stdlib, #weakref