§
Y�JzR›Ôuã ó< — d Z ddlmZmZmZmZmZmZmZm Z ddl
mZmZ ddl
Z
ddlZddlZeefZg d¢Ze
j e¦ « G d„ de¦ « Z G d„ d e
j ¦ « Z G d
„ de¦ « Z G d„ d
e
j ¦ « Z G d„ d¦ « ZdS )ztWeak reference support for Python.
This module is an implementation of PEP 205:
https://peps.python.org/pep-0205/
é )ÚgetweakrefcountÚgetweakrefsÚrefÚproxyÚCallableProxyTypeÚ ProxyTypeÚ
ReferenceTypeÚ_remove_dead_weakref)ÚWeakSetÚ_IterationGuardN)
r r r r ÚWeakKeyDictionaryr r r Ú
ProxyTypesÚWeakValueDictionaryr Ú
WeakMethodÚfinalizec óH ‡ — e Zd ZdZdZdd„Zˆ fd„Zd„ Zd„ Ze j
Z
ˆ xZS ) r z—
A custom `weakref.ref` subclass which simulates a weak reference to
a bound method, working around the lifetime problem of bound methods.
)Ú _func_refÚ
_meth_typeÚ_aliveÚ__weakref__Nc ó\ ‡‡— |j }|j }n># t $ r1 t d t |¦ « ¦ « ¦ « d ‚w xY wˆˆfd„}t
j | ||¦ « }t
||¦ « |_ t |¦ « |_ d|_
t
|¦ « Š|S )Nz)argument should be a bound method, not {}c óZ •— ‰¦ « }|j rd|_ ‰� ‰|¦ « d S d S d S ©NF)r )ÚargÚselfÚcallbackÚself_wrs €€ú4/opt/alt/python-internal/lib64/python3.11/weakref.pyÚ_cbzWeakMethod.__new__.