JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrJFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr e f# @sdZddlZddZeeZeddZeejZeejZ eej Z ddZ ee Z Gd d d ZeejZeeZegjZeeZy eWnFek r"ejd ZeeZeejZdZ[YnXeejZeejZ[[[ [fddd d ZfdddZ ddZ!GdddZ"dde#DZ$dS)zO Define names for built-in types that aren't directly accessible as a builtin. NcCsdS)Nrrr*/opt/alt/python34/lib64/python3.4/types.py_f srcCsdS)Nrrrrr srccs dVdS)Nrrrrr_gsrc@seZdZddZdS)_CcCsdS)Nr)selfrrr_msz_C._mN)__name__ __module__ __qualname__r rrrrrs rcCsGt|||\}}}|dk r4||n|||||S)zBCreate a class object dynamically using the appropriate metaclass.N) prepare_class)namebaseskwds exec_bodymetansrrr new_class/s  rcCs|dkri}n t|}d|kr?|jd}n|rXt|d}nt}t|trt||}nt|dr|j|||}ni}|||fS)azCall the __prepare__ method of the appropriate metaclass. Returns (metaclass, namespace, kwds) as a 3-tuple *metaclass* is the appropriate metaclass *namespace* is the prepared class namespace *kwds* is an updated copy of the passed in kwds argument with any 'metaclass' entry removed. If no kwds argument is passed in, this will be an empty dict. N metaclassr __prepare__)dictpoptype isinstance_calculate_metahasattrr)rrrrrrrrr6s    rcCsc|}xV|D]N}t|}t||r4q nt||rO|}q ntdq W|S)z%Calculate the most derived metaclass.zxmetaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases)r issubclass TypeError)rrwinnerbase base_metarrrrVs  rc@syeZdZdZddddddZdddZddZd d Zd d Zd dZ ddZ dS)DynamicClassAttributeaRoute attribute access on a class to __getattr__. This is a descriptor, used to define attributes that act differently when accessed through an instance and through a class. Instance access remains normal, but access to an attribute through a class will be routed to the class's __getattr__ method; this is done by raising AttributeError. This allows one to have properties active on an instance, and have virtual attributes on the class with the same name (see Enum for an example). NcCs[||_||_||_|p'|j|_|dk|_tt|dd|_dS)N__isabstractmethod__F)fgetfsetfdel__doc__ overwrite_docboolgetattrr%)r r&r'r(docrrr__init__ss    zDynamicClassAttribute.__init__cCsP|dkr%|jr|Stn|jdkrCtdn|j|S)Nzunreadable attribute)r%AttributeErrorr&)r instance ownerclassrrr__get__}s   zDynamicClassAttribute.__get__cCs2|jdkrtdn|j||dS)Nzcan't set attribute)r'r/)r r0valuerrr__set__szDynamicClassAttribute.__set__cCs/|jdkrtdn|j|dS)Nzcan't delete attribute)r(r/)r r0rrr __delete__sz DynamicClassAttribute.__delete__cCsR|jr|jnd}t|||j|j|p<|j}|j|_|S)N)r*r)rr'r()r r&fdocresultrrrgetters* zDynamicClassAttribute.gettercCs4t||j||j|j}|j|_|S)N)rr&r(r)r*)r r'r7rrrsetters$ zDynamicClassAttribute.settercCs4t||j|j||j}|j|_|S)N)rr&r'r)r*)r r(r7rrrdeleters$ zDynamicClassAttribute.deleter) r r r r)r.r2r4r5r8r9r:rrrrr$gs      r$cCs,g|]"}|dddkr|qS)Nr_r).0nrrr s r>)%r)sysrr FunctionType LambdaType__code__CodeType__dict__MappingProxyTypeimplementationSimpleNamespacer GeneratorTyperr MethodTypelenBuiltinFunctionTypeappendBuiltinMethodType ModuleTyper exc_infotb TracebackTypetb_frame FrameTypeGetSetDescriptorType __globals__MemberDescriptorTyperrrr$globals__all__rrrrs<           :