ok
Direktori : /proc/thread-self/root/usr/lib64/python2.7/ |
Current File : //proc/thread-self/root/usr/lib64/python2.7/weakref.pyo |
� ]цdc @ 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__>