File: //proc/2/cwd/usr/lib/python2.4/Demo/metaclasses/Simple.pyc
mò
‚=5Dc @ s d k Z d f d „ ƒ YZ d f d „ ƒ YZ d f d „ ƒ YZ e d f h ƒ Z d e f d „ ƒ YZ e ƒ Z e i d
ƒ e i ƒ GHd S( Nt Tracingc B s t Z d „ Z d „ Z RS( Nc C s | | _ | | _ | | _ d S( s Create a new class.N( t namet selft __name__t basest __bases__t namespacet
__namespace__( R R R R ( ( t- /usr/lib/python2.4/Demo/metaclasses/Simple.pyt __init__ s c C s
t | ƒ S( s Create a new instance.N( t InstanceR ( R ( ( R t __call__ s ( R t
__module__R R ( ( ( R R s R
c B s t Z d „ Z d „ Z RS( Nc C s
| | _ d S( N( t klassR t __klass__( R R
( ( R R s c C s^ y | i i | } Wn t j
o t | ‚ n Xt | ƒ t i j o | Sn t
| | ƒ S( N( R R R R t valuet KeyErrort AttributeErrort typet typest FunctionTypet BoundMethod( R R R ( ( R t __getattr__ s ( R R R R ( ( ( R R
s R c B s t Z d „ Z d „ Z RS( Nc C s | | _ | | _ d S( N( t functionR t instance( R R R ( ( R R s c G s9 d G| i Gd G| i Gd G| GHt | i | i f | ƒ S( Nt callingt fort with( R R R t argst apply( R R ( ( R R s ( R R R R ( ( ( R R s t Tracet
MyTracedClassc B s t Z d „ Z d „ Z RS( Nc C s
| | _ d S( N( t aR ( R R ( ( R t method1$ s c C s | i S( N( R R ( R ( ( R t method2&