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.
Slice Objects
Capsules
Enter search terms or a module, class or function name.