//usr/lib64/lib64//lib64/lib64/python2.7/ó
ÙœSec @ sè d Z d d l Z d d l m Z m Z m Z m Z m Z m Z m Z d d l
m Z d d l m
Z
e e f Z d d d d d
d d d
d d d d g Z d e j f d „ ƒ YZ d e f d „ ƒ YZ d
e j f d „ ƒ YZ d S( s{ Weak reference support for Python.
This module is an implementation of PEP 205:
http://www.python.org/dev/peps/pep-0205/
iÿÿÿÿN( t getweakrefcountt getweakrefst reft proxyt CallableProxyTypet ProxyTypet
ReferenceType( t WeakSet( t ReferenceErrorR R R R t WeakKeyDictionaryR R R R t
ProxyTypest WeakValueDictionaryR c B sÚ e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e Z
d „ Z d d „ Z
d
„ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d „ Z d „ Z d d „ Z d d „ Z d „ Z d „ Z RS( s› Mapping class that references values weakly.
Entries in the dictionary will be discarded when no strong
reference to the value exists anymore
c O s5 t | ƒ d „ } | | _ t j j | | | Ž d S( Nc S s) | ƒ } | d k r% | j | j =n d S( N( t Nonet datat key( t wrt selfreft self( ( s /usr/lib64/python2.7/weakref.pyt remove0 s ( R t _removet UserDictt __init__( R t argst kwR ( ( s /usr/lib64/python2.7/weakref.pyR / s c C s0 | j | ƒ } | d k r( t | ‚ n | Sd S( N( R
R t KeyError( R R t o( ( s /usr/lib64/python2.7/weakref.pyt __getitem__7 s c C s3 y | j | ƒ } Wn t k
r( t SX| d k S( N( R
R t FalseR ( R R R ( ( s /usr/lib64/python2.7/weakref.pyt __contains__> s
c C s3 y | j | ƒ } Wn t k
r( t SX| d k S( N( R
R R R ( R R R ( ( s /usr/lib64/python2.7/weakref.pyt has_keyE s
c C s d t | ƒ S( Ns ( t id( R ( ( s /usr/lib64/python2.7/weakref.pyt __repr__L s c C s t | | j | ƒ | j |