관리-도구
편집 파일: abc.cpython-33.pyo
� ��fy c @ s~ d Z d d l m Z d d � Z Gd d � d e � Z Gd d � d e � Z Gd d � d e � Z Gd d � d e � Z d S( u3 Abstract Base Classes (ABCs) according to PEP 3119.i ( u WeakSetc C s d | _ | S( u� A decorator indicating abstract methods. Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract methods are overridden. The abstract methods can be called using any of the normal 'super' call mechanisms. Usage: class C(metaclass=ABCMeta): @abstractmethod def my_abstract_method(self, ...): ... T( u Trueu __isabstractmethod__( u funcobj( ( u( /opt/alt/python33/lib64/python3.3/abc.pyu abstractmethod s u abstractmethodc s2 | Ee Z d Z d Z d Z � f d d � Z � S( u abstractclassmethoduO A decorator indicating abstract classmethods. Similar to abstractmethod. Usage: class C(metaclass=ABCMeta): @abstractclassmethod def my_abstract_classmethod(cls, ...): ... 'abstractclassmethod' is deprecated. Use 'classmethod' with 'abstractmethod' instead. c s d | _ t � j | � d S( NT( u Trueu __isabstractmethod__u superu __init__( u selfu callable( u __class__( u( /opt/alt/python33/lib64/python3.3/abc.pyu __init__/ s u abstractclassmethod.__init__T( u __name__u __module__u __qualname__u __doc__u Trueu __isabstractmethod__u __init__( u __locals__( ( u __class__u( /opt/alt/python33/lib64/python3.3/abc.pyu abstractclassmethod s u abstractclassmethodc s2 | Ee Z d Z d Z d Z � f d d � Z � S( u abstractstaticmethoduO A decorator indicating abstract staticmethods. Similar to abstractmethod. Usage: class C(metaclass=ABCMeta): @abstractstaticmethod def my_abstract_staticmethod(...): ... 'abstractstaticmethod' is deprecated. Use 'staticmethod' with 'abstractmethod' instead. c s d | _ t � j | � d S( NT( u Trueu __isabstractmethod__u superu __init__( u selfu callable( u __class__( u( /opt/alt/python33/lib64/python3.3/abc.pyu __init__G s u abstractstaticmethod.__init__T( u __name__u __module__u __qualname__u __doc__u Trueu __isabstractmethod__u __init__( u __locals__( ( u __class__u( /opt/alt/python33/lib64/python3.3/abc.pyu abstractstaticmethod4 s u abstractstaticmethodc B s | Ee Z d Z d Z d Z d S( u abstractpropertyuk A decorator indicating abstract properties. Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract properties are overridden. The abstract properties can be called using any of the normal 'super' call mechanisms. Usage: class C(metaclass=ABCMeta): @abstractproperty def my_abstract_property(self): ... This defines a read-only property; you can also define a read-write abstract property using the 'long' form of property declaration: class C(metaclass=ABCMeta): def getx(self): ... def setx(self, value): ... x = abstractproperty(getx, setx) 'abstractproperty' is deprecated. Use 'property' with 'abstractmethod' instead. NT( u __name__u __module__u __qualname__u __doc__u Trueu __isabstractmethod__( u __locals__( ( u( /opt/alt/python33/lib64/python3.3/abc.pyu abstractpropertyL s u abstractpropertyc se | Ee Z d Z d Z d Z � f d d � Z d d � Z d d d � Z d d � Z d d � Z � S( u ABCMetaui Metaclass for defining Abstract Base Classes (ABCs). Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as 'virtual subclasses' -- these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won't show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()). i c s� t � j | | | | � } d d � | j � D� } xb | D]Z } xQ t | d t � � D]: } t | | d � } t | d d � rW | j | � qW qW Wq; Wt | � | _ t � | _ t � | _ t � | _ t j | _ | S( Nc S s. h | ]$ \ } } t | d d � r | � q S( u __isabstractmethod__F( u getattru False( u .0u nameu value( ( u( /opt/alt/python33/lib64/python3.3/abc.pyu <setcomp>� s u"