AlkantarClanX12
Current Path : /lib64/python2.7/Demo/metaclasses/ |
Current File : //lib64/python2.7/Demo/metaclasses/Simple.pyo |
� ��^c @ s� d d l Z d d d � � YZ d d d � � YZ d d d � � YZ e d d i � Z d e f d � � YZ e � Z e j d � e j � GHd S( i����Nt Tracingc B s e Z d � Z d � Z RS( c C s | | _ | | _ | | _ d S( s Create a new class.N( t __name__t __bases__t __namespace__( t selft namet basest namespace( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyt __init__ s c C s t | � S( s Create a new instance.( t Instance( R ( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyt __call__ s ( R t __module__R R ( ( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyR s R c B s e Z d � Z d � Z RS( c C s | | _ d S( N( t __klass__( R t klass( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyR s c C sW y | j j | } Wn t k r0 t | � n Xt | � t j k rJ | St | | � S( N( R R t KeyErrort AttributeErrort typet typest FunctionTypet BoundMethod( R R t value( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyt __getattr__ s ( R R R R ( ( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyR s R c B s e Z d � Z d � Z RS( c C s | | _ | | _ d S( N( t functiont instance( R R R ( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyR s c G s9 d G| j Gd G| j Gd G| GHt | j | j f | � S( Nt callingt fort with( R R t apply( R t args( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyR s ( R R R R ( ( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyR s t Tracet MyTracedClassc B s e Z d � Z d � Z RS( c C s | | _ d S( N( t a( R R ( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyt method1$ s c C s | j S( N( R ( R ( ( s/ /usr/lib64/python2.7/Demo/metaclasses/Simple.pyt method2&