Back to module index

Go to module by name

_weakref

Weak-reference support module.

Classes

CallableProxyType

ProxyType

ReferenceType

ReferenceType

Functions

getweakrefcount

getweakrefcount(object, /)

  Return the number of weak references to 'object'.

getweakrefs

getweakrefs(...)

  getweakrefs(object) -- return a list of all weak reference objects
  that point to 'object'.

proxy

proxy(...)

  proxy(object[, callback]) -- create a proxy object that weakly
  references 'object'.  'callback', if given, is called with a
  reference to the proxy when 'object' is about to be finalized.