KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21571/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/usr/lib64/python2.4/weakref.pyc
mò
‚=5Dc
@sÉdZdkZdklZlZlZlZlZlZl	Z	dk
lZeefZdddddd	d
ddd
g
Z
d
eifd„ƒYZdefd„ƒYZdeifd„ƒYZdS(sƒWeak reference support for Python.

This module is an implementation of PEP 205:

http://python.sourceforge.net/peps/pep-0205.html
N(sgetweakrefcountsgetweakrefssrefsproxysCallableProxyTypes	ProxyTypes
ReferenceType(sReferenceErrortreftproxytgetweakrefcounttgetweakrefstWeakKeyDictionaryt
ReferenceTypet	ProxyTypetCallableProxyTypet
ProxyTypestWeakValueDictionarycBs¹tZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	e
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Ze
d„Ze
d„Zd„ZRS(s›Mapping class that references values weakly.

    Entries in the dictionary will be discarded when no strong
    reference to the value exists anymore
    cOs5t|ƒd„}||_tii|||ŽdS(NcCs+|ƒ}|dj	o|i|i=ndS(N(tselfreftselftNonetdatatwrtkey(RR
R((t/usr/lib64/python2.4/weakref.pytremove.s	
(RRRt_removetUserDictt__init__targstkw(RRRR((RR-s	cCs2|i|ƒ}|djo
t|‚n|SdS(N(RR
RtoRtKeyError(RRR((Rt__getitem__5s

cCs8y|i|ƒ}Wntj
otSnX|dj	S(N(RR
RRRtFalseR(RRR((Rt__contains__<s
	cCs8y|i|ƒ}Wntj
otSnX|dj	S(N(RR
RRRRR(RRR((Rthas_keyCs
	cCsdt|ƒS(Ns<WeakValueDictionary at %s>(tidR(R((Rt__repr__JscCs t||i|ƒ|i|<dS(N(tKeyedReftvalueRRRR
(RRR ((Rt__setitem__MscCsQtƒ}xA|iiƒD]0\}}|ƒ}|dj	o|||<qqW|S(N(	R	tnewRR
titemsRRRR(RRRRR"((RtcopyPs		
cCsQy|i|}Wntj
o|Sn$X|ƒ}|djo|Sn|SdS(N(RR
RRRtdefaultRR(RRR%RR((RtgetXs		
cCsWg}xJ|iiƒD]9\}}|ƒ}|dj	o|i||fƒqqW|S(N(	tLRR
R#RRRRtappend(RR'RRR((RR#es	
ccsEx>|iiƒD]-}|ƒ}|dj	o|i|fVqqWdS(N(RR
t
itervaluesRR RR(RRR ((Rt	iteritemsms
	
cCs
|iiƒS(N(RR
titerkeys(R((RR+sscCs
|iiƒS(N(RR
R+(R((Rt__iter__vsccs<x5|iiƒD]$}|ƒ}|dj	o|VqqWdS(N(RR
R)RtobjR(RR-R((RR)ys
	
cCsEx>|iiƒ\}}|ƒ}|dj	o||fSqqWdS(Ni(RR
tpopitemRRRR(RRRR((RR.s	
cGsgy|ii|ƒƒ}Wn)tj
o|o|dSn‚nX|djo
t|‚n|SdS(Ni(RR
tpopRRRRR(RRRR((RR/†s

cCsRy|i|}Wn3tj
o't||i|ƒ|i|<|Sn	X|ƒSdS(N(RR
RRRRR%R(RRR%R((Rt
setdefault’s	cKs˜|i}|dj	o`t|dƒpthƒ|ƒ}nx7|iƒD]%\}}t
||i|ƒ||<qIWnt|ƒo|i|ƒndS(NR#(RR
tdtdictRthasattrttypeR#RRRRtlentkwargstupdate(RR2R6R1RR((RR7›s	

!
cCsKg}x>|iiƒD]-}|ƒ}|dj	o|i|ƒqqW|S(N(R'RR
tvaluesRRRR((RR'RR((RR8¥s	
(t__name__t
__module__t__doc__RRRRRR!R$RR&R#R*R+R,R)R.R/R0R7R8(((RR	!s&							
								
RcBs&tZdZdZd„Zd„ZRS(s[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.

    RcCs"ti|||ƒ}||_|S(N(Rt__new__R4tobtcallbackRR(R4R=R>RR((RR<ºs	cCstt|ƒi||ƒdS(N(tsuperRRRR=R>(RR=R>R((RR¿s(skey(R9R:R;t	__slots__R<R(((RR®s	cBsÅtZdZed„Zd„Zd„Zd„Zd„Zd„Z	ed„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zd„Zed„Zed„ZRS(s‰ 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.
    cCsFh|_t|ƒd„}||_|dj	o|i|ƒndS(NcCs(|ƒ}|dj	o|i|=ndS(N(R
RRR
tk(RAR
R((RRÐs	
(RR
RRRR2RR7(RR2R((RRÎs
		
cCs|it|ƒ=dS(N(RR
RR(RR((Rt__delitem__×scCs|it|ƒS(N(RR
RR(RR((RRÚscCsdt|ƒS(Ns<WeakKeyDictionary at %s>(RR(R((RRÝscCs||it||iƒ<dS(N(R RR
RRR(RRR ((RR!àscCsQtƒ}xA|iiƒD]0\}}|ƒ}|dj	o|||<qqW|S(N(	RR"RR
R#RR RR(RR RRR"((RR$ãs		
cCs|iit|ƒ|ƒS(N(RR
R&RRR%(RRR%((RR&ëscCs7yt|ƒ}Wntj
odSnX||ijS(Ni(RRRt	TypeErrorRR
(RRR((RRîs
	cCs7yt|ƒ}Wntj
odSnX||ijS(Ni(RRRRCRR
(RRR((RRõs
	cCsWg}xJ|iiƒD]9\}}|ƒ}|dj	o|i||fƒqqW|S(N(	R'RR
R#RR RRR((RR'R RR((RR#üs	
ccsHxA|iiƒD]0\}}|ƒ}|dj	o||fVqqWdS(N(RR
R*RR RR(RRRR ((RR*s
	
ccs<x5|iiƒD]$}|ƒ}|dj	o|VqqWdS(N(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