vsoler writes:
> I have a class that is a wrapper:
>
> class wrapper:
> def __init__(self, object):
> self.wrapped = object
> def __getattr__(self, attrname):
> print 'Trace: ', attrname
> #print arguments to attrname, how?
> return getattr(self.wrapped, at
On Feb 28, 4:00 pm, "Alf P. Steinbach" wrote:
> * vsoler:
>
>
>
> > I have a class that is a wrapper:
>
> > class wrapper:
> > def __init__(self, object):
> > self.wrapped = object
> > def __getattr__(self, attrname):
> > print 'Trace: ', attrname
> > #print argumen
* vsoler:
I have a class that is a wrapper:
class wrapper:
def __init__(self, object):
self.wrapped = object
def __getattr__(self, attrname):
print 'Trace: ', attrname
#print arguments to attrname, how?
return getattr(self.wrapped, attrname)
I can run it