Python stdlib module — weakref. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.getweakrefcount()Neutralgetweakrefcount(object)
Return the number of weak references to 'object'.
.getweakrefs()Neutralgetweakrefs(object)
Return a list of all weak reference objects pointing to 'object'.
.proxy()Neutralproxy(object, callback)
Create a proxy object that weakly references 'object'.
.KeyedRef()NeutralKeyedRef(...)
Specialized reference that includes a key corresponding to the value.
.WeakKeyDictionary()NeutralWeakKeyDictionary(...)
Mapping class that references keys weakly.
.WeakMethod()NeutralWeakMethod(...)
A custom `weakref.ref` subclass which simulates a weak reference to
| FQN | Field | |
|---|---|---|
| weakref | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import weakref