Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.22.185.143
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : weakref.cpython-32.pyo
l
��bc@s�dZddlmZmZmZmZmZmZmZddl	m
Z
mZddlZeefZ
ddddd	d
ddd
ddgZGd�dej�ZGd�de�ZGd�d	ej�ZdS(u{Weak reference support for Python.

This module is an implementation of PEP 205:

http://www.python.org/dev/peps/pep-0205/
i(ugetweakrefcountugetweakrefsurefuproxyuCallableProxyTypeu	ProxyTypeu
ReferenceType(uWeakSetu_IterationGuardNurefuproxyugetweakrefcountugetweakrefsuWeakKeyDictionaryu
ReferenceTypeu	ProxyTypeuCallableProxyTypeu
ProxyTypesuWeakValueDictionaryuWeakSetcBs�|EeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZeZd
�Z
dd�Zd�Zd
�ZeZd�Zd�Zd�Zd�Zdd�Zdd�Zd�ZdS(u�Mapping class that references values weakly.

    Entries in the dictionary will be discarded when no strong
    reference to the value exists anymore
    cOsQt|�d�}||_g|_t�|_i|_}|j||�dS(NcSsH|�}|dk	rD|jr4|jj|j�qD|j|j=ndS(N(uNoneu
_iteratingu_pending_removalsuappendukeyudata(uwruselfrefuself((u./usr/local/python-3.2/lib/python3.2/weakref.pyuremove.s
		(urefu_removeu_pending_removalsusetu
_iteratingudatauupdate(uselfuargsukwuremoveud((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__init__-s		
cCs0|j}|j}x|r+||j�=qWdS(N(u_pending_removalsudataupop(uselfulud((u./usr/local/python-3.2/lib/python3.2/weakref.pyu_commit_removals<s			cCs3|j|�}|dkr+t|��n|SdS(N(udatauNoneuKeyError(uselfukeyuo((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__getitem__DscCs$|jr|j�n|j|=dS(N(u_pending_removalsu_commit_removalsudata(uselfukey((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__delitem__Ks	
cCst|j�t|j�S(N(ulenudatau_pending_removals(uself((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__len__PscCs7y|j|�}Wntk
r,dSYnX|dk	S(NF(udatauKeyErroruFalseuNone(uselfukeyuo((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__contains__Ss

	cCsdt|�S(Nu<WeakValueDictionary at %s>(uid(uself((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__repr__ZscCs6|jr|j�nt||j|�|j|<dS(N(u_pending_removalsu_commit_removalsuKeyedRefu_removeudata(uselfukeyuvalue((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__setitem__]s	
cCsOt�}x?|jj�D].\}}|�}|dk	r|||<qqW|S(N(uWeakValueDictionaryudatauitemsuNone(uselfunewukeyuwruo((u./usr/local/python-3.2/lib/python3.2/weakref.pyucopybs		cCskddlm}|j�}xH|jj�D]7\}}|�}|dk	r,|||||�<q,q,W|S(Ni(udeepcopy(ucopyudeepcopyu	__class__udatauitemsuNone(uselfumemoudeepcopyunewukeyuwruo((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__deepcopy__ls	cCsKy|j|}Wntk
r)|SYnX|�}|dkrC|S|SdS(N(udatauKeyErroruNone(uselfukeyudefaultuwruo((u./usr/local/python-3.2/lib/python3.2/weakref.pyugetus
		c
csZt|��Hx@|jj�D]/\}}|�}|dk	r||fVqqWWdQXdS(N(u_IterationGuardudatauitemsuNone(uselfukuwruv((u./usr/local/python-3.2/lib/python3.2/weakref.pyuitems�s

	c
csNt|��<x4|jj�D]#\}}|�dk	r|VqqWWdQXdS(N(u_IterationGuardudatauitemsuNone(uselfukuwr((u./usr/local/python-3.2/lib/python3.2/weakref.pyukeys�s
c	cs6t|��$x|jj�D]}|VqWWdQXdS(u�Return an iterator that yields the weak references to the values.

        The references are not guaranteed to be 'live' at the time
        they are used, so the result of calling the references needs
        to be checked before being used.  This can be used to avoid
        creating references that will cause the garbage collector to
        keep the values around longer than needed.

        N(u_IterationGuardudatauvalues(uselfuwr((u./usr/local/python-3.2/lib/python3.2/weakref.pyu
itervaluerefs�s

c
csNt|��<x4|jj�D]#}|�}|dk	r|VqqWWdQXdS(N(u_IterationGuardudatauvaluesuNone(uselfuwruobj((u./usr/local/python-3.2/lib/python3.2/weakref.pyuvalues�s

	cCsT|jr|j�nx7|jj�\}}|�}|dk	r||fSqdS(N(u_pending_removalsu_commit_removalsudataupopitemuNone(uselfukeyuwruo((u./usr/local/python-3.2/lib/python3.2/weakref.pyupopitem�s	
	cGsx|jr|j�ny|jj|��}Wn#tk
rT|rM|dS�YnX|dkrpt|��n|SdS(Ni(u_pending_removalsu_commit_removalsudataupopuKeyErroruNone(uselfukeyuargsuo((u./usr/local/python-3.2/lib/python3.2/weakref.pyupop�s	

cCsgy|j|}WnHtk
r[|jr7|j�nt||j|�|j|<|SYnX|�SdS(N(udatauKeyErroru_pending_removalsu_commit_removalsuKeyedRefu_remove(uselfukeyudefaultuwr((u./usr/local/python-3.2/lib/python3.2/weakref.pyu
setdefault�s
	
	cKs�|jr|j�n|j}|dk	r�t|d�sOti�|�}nx6|j�D]%\}}t||j|�||<q\Wnt	|�r�|j
|�ndS(Nuitems(u_pending_removalsu_commit_removalsudatauNoneuhasattrutypeuitemsuKeyedRefu_removeulenuupdate(uselfudictukwargsudukeyuo((u./usr/local/python-3.2/lib/python3.2/weakref.pyuupdate�s	
	 cCst|jj��S(u~Return a list of weak references to the values.

        The references are not guaranteed to be 'live' at the time
        they are used, so the result of calling the references needs
        to be checked before being used.  This can be used to avoid
        creating references that will cause the garbage collector to
        keep the values around longer than needed.

        (ulistudatauvalues(uself((u./usr/local/python-3.2/lib/python3.2/weakref.pyu	valuerefs�s
N(u__name__u
__module__u__doc__u__init__u_commit_removalsu__getitem__u__delitem__u__len__u__contains__u__repr__u__setitem__ucopyu__copy__u__deepcopy__uNoneugetuitemsukeysu__iter__u
itervaluerefsuvaluesupopitemupopu
setdefaultuupdateu	valuerefs(u
__locals__((u./usr/local/python-3.2/lib/python3.2/weakref.pyuWeakValueDictionary!s.
											
							cs2|EeZdZdZd�Z�fd�Z�S(u[Specialized reference that includes a key corresponding to the value.

    This is used in the WeakValueDictionary to avoid having to create
    a function object for each key stored in the mapping.  A shared
    callback object can use the 'key' attribute of a KeyedRef instead
    of getting a reference to the key from an enclosing scope.

    ukeycCs"tj|||�}||_|S(N(urefu__new__ukey(utypeuobucallbackukeyuself((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__new__�s	cst�j||�dS(N(usuperu__init__(uselfuobucallbackukey(u	__class__(u./usr/local/python-3.2/lib/python3.2/weakref.pyu__init__�s(ukey(u__name__u
__module__u__doc__u	__slots__u__new__u__init__(u
__locals__((u	__class__u./usr/local/python-3.2/lib/python3.2/weakref.pyuKeyedRef�s
	uKeyedRefcBs�|EeZdZdd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�ZeZd	�Z
dd
�Zd�Zd�Zd
�ZeZd�Zd�Zd�Zd�Zdd�Zdd�ZdS(u� Mapping class that references keys weakly.

    Entries in the dictionary will be discarded when there is no
    longer a strong reference to the key. This can be used to
    associate additional data with an object owned by other parts of
    an application without adding attributes to those objects. This
    can be especially useful with objects that override attribute
    accesses.
    cCsYi|_t|�d�}||_g|_t�|_|dk	rU|j|�ndS(NcSsB|�}|dk	r>|jr1|jj|�q>|j|=ndS(N(uNoneu
_iteratingu_pending_removalsuappendudata(ukuselfrefuself((u./usr/local/python-3.2/lib/python3.2/weakref.pyuremoves
		(udataurefu_removeu_pending_removalsusetu
_iteratinguNoneuupdate(uselfudicturemove((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__init__s			cCsI|j}|j}x0|rDy||j�=Wqtk
r@YqXqWdS(N(u_pending_removalsudataupopuKeyError(uselfulud((u./usr/local/python-3.2/lib/python3.2/weakref.pyu_commit_removalss			
cCs|jt|�=dS(N(udatauref(uselfukey((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__delitem__scCs|jt|�S(N(udatauref(uselfukey((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__getitem__!scCst|j�t|j�S(N(ulenudatau_pending_removals(uself((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__len__$scCsdt|�S(Nu<WeakKeyDictionary at %s>(uid(uself((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__repr__'scCs||jt||j�<dS(N(udataurefu_remove(uselfukeyuvalue((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__setitem__*scCsOt�}x?|jj�D].\}}|�}|dk	r|||<qqW|S(N(uWeakKeyDictionaryudatauitemsuNone(uselfunewukeyuvalueuo((u./usr/local/python-3.2/lib/python3.2/weakref.pyucopy-s		cCskddlm}|j�}xH|jj�D]7\}}|�}|dk	r,|||�||<q,q,W|S(Ni(udeepcopy(ucopyudeepcopyu	__class__udatauitemsuNone(uselfumemoudeepcopyunewukeyuvalueuo((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__deepcopy__7s	cCs|jjt|�|�S(N(udataugeturef(uselfukeyudefault((u./usr/local/python-3.2/lib/python3.2/weakref.pyuget@scCs6yt|�}Wntk
r(dSYnX||jkS(NF(urefu	TypeErroruFalseudata(uselfukeyuwr((u./usr/local/python-3.2/lib/python3.2/weakref.pyu__contains__Cs

	c
csZt|��Hx@|jj�D]/\}}|�}|dk	r||fVqqWWdQXdS(N(u_IterationGuardudatauitemsuNone(uselfuwruvalueukey((u./usr/local/python-3.2/lib/python3.2/weakref.pyuitemsJs

	c
csHt|��6x.|jD]#}|�}|dk	r|VqqWWdQXdS(N(u_IterationGuardudatauNone(uselfuwruobj((u./usr/local/python-3.2/lib/python3.2/weakref.pyukeysQs

	c
csNt|��<x4|jj�D]#\}}|�dk	r|VqqWWdQXdS(N(u_IterationGuardudatauitemsuNone(uselfuwruvalue((u./usr/local/python-3.2/lib/python3.2/weakref.pyuvaluesZs
cCs
t|j�S(uzReturn a list of weak references to the keys.

        The references are not guaranteed to be 'live' at the time
        they are used, so the result of calling the references needs
        to be checked before being used.  This can be used to avoid
        creating references that will cause the garbage collector to
        keep the keys around longer than needed.

        (ulistudata(uself((u./usr/local/python-3.2/lib/python3.2/weakref.pyukeyrefs`s
cCs>x7|jj�\}}|�}|dk	r||fSqdS(N(udataupopitemuNone(uselfukeyuvalueuo((u./usr/local/python-3.2/lib/python3.2/weakref.pyupopitemls
	cGs|jjt|�|�S(N(udataupopuref(uselfukeyuargs((u./usr/local/python-3.2/lib/python3.2/weakref.pyupopsscCs|jjt||j�|�S(N(udatau
setdefaulturefu_remove(uselfukeyudefault((u./usr/local/python-3.2/lib/python3.2/weakref.pyu
setdefaultvscKs�|j}|dk	rot|d�s9ti�|�}nx3|j�D]"\}}||t||j�<qFWnt|�r�|j|�ndS(Nuitems(	udatauNoneuhasattrutypeuitemsurefu_removeulenuupdate(uselfudictukwargsudukeyuvalue((u./usr/local/python-3.2/lib/python3.2/weakref.pyuupdateys	N(u__name__u
__module__u__doc__uNoneu__init__u_commit_removalsu__delitem__u__getitem__u__len__u__repr__u__setitem__ucopyu__copy__u__deepcopy__ugetu__contains__uitemsukeysu__iter__uvaluesukeyrefsupopitemupopu
setdefaultuupdate(u
__locals__((u./usr/local/python-3.2/lib/python3.2/weakref.pyuWeakKeyDictionary�s,
		
															(u__doc__u_weakrefugetweakrefcountugetweakrefsurefuproxyuCallableProxyTypeu	ProxyTypeu
ReferenceTypeu_weakrefsetuWeakSetu_IterationGuarducollectionsu
ProxyTypesu__all__uMutableMappinguWeakValueDictionaryuKeyedRefuWeakKeyDictionary(((u./usr/local/python-3.2/lib/python3.2/weakref.pyu<module>s4				�
© 2025 GrazzMean