Language Features

PyWeakref

Python stdlib module — weakref. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.getweakrefcount()Neutral
#
Signature
getweakrefcount(object)

Return the number of weak references to 'object'.

.getweakrefs()Neutral
#
Signature
getweakrefs(object)

Return a list of all weak reference objects pointing to 'object'.

.proxy()Neutral
#
Signature
proxy(object, callback)

Create a proxy object that weakly references 'object'.

.CallableProxyType()Neutral
#
Signature
CallableProxyType(...)

CallableProxyType class.

.KeyedRef()Neutral
#
Signature
KeyedRef(...)

Specialized reference that includes a key corresponding to the value.

.ProxyType()Neutral
#
Signature
ProxyType(...)

ProxyType class.

.ReferenceType()Neutral
#
Signature
ReferenceType(...)

ReferenceType class.

.WeakKeyDictionary()Neutral
#
Signature
WeakKeyDictionary(...)

Mapping class that references keys weakly.

.WeakMethod()Neutral
#
Signature
WeakMethod(...)

A custom `weakref.ref` subclass which simulates a weak reference to

.WeakSet()Neutral
#
Signature
WeakSet(...)

WeakSet class.

Fully-Qualified Names

FQNField
weakreffqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import weakref