/
/
usr/
lib64/
lib64/
/
lib64/
/
python2.7/ó
V
Qc @ s© d Z d d l Z d d l Z d d d „ ƒ YZ d d d „ ƒ YZ d d d „ ƒ YZ d e f d
„ ƒ YZ e d d i d d 6ƒ Z d
„ Z e
d k r¥ e ƒ n d S( s? Tracing metaclass.
XXX This is very much a work in progress.
iÿÿÿÿNt TraceMetaClassc B s> e Z d Z d Z d „ Z d „ Z d „ Z d „ Z d Z RS( sU Metaclass for tracing.
Classes defined using this metaclass have an automatic tracing
feature -- by setting the __trace_output__ instance (or class)
variable to a file object, trace messages about all calls are
written to the file. The trace formatting can be changed by
defining a suitable __trace_call__ method.
i c C s( | | _ | | _ | | _ d | _ d S( Ni ( t __name__t __bases__t _TraceMetaClass__dictt _TraceMetaClass__inited( t selft namet basest dict( ( s. /usr/lib64/python2.7/Demo/metaclasses/Trace.pyt __init__ s c C si y | j | SWnS t k
rd x6 | j D]+ } y | j | ƒ SWq) t k
rS q) Xq) Wt | ‚ n Xd S( N( R t KeyErrorR t __getattr__t AttributeError( R R t base( ( s. /usr/lib64/python2.7/Demo/metaclasses/Trace.pyR s
c C s* | j s | | j |