mutlifile inheritance problem
Marc
maurelius01 at hotmail.com
Fri Mar 22 11:25:27 EST 2002
Pearu Peterson wrote:
>
> On 21 Mar 2002, Marc wrote:
>
> > class ImStream_SavedBitmaps(cbase01.CImStream):
> >
> > def __init__(self):
> > cbase.CImStream.__init__(self)
> ^^^^^
> This should be cbase01, right?
>
> > ***************************************************************
> >
> > If I run test02 I get the traceback
> >
> > Traceback (innermost last):
> > File "<string>", line 1, in ?
> > File "D:\PythonCode\pna\eyeTracking\tests\test02.py", line 15, in ?
> > x0 = wrappers_A01.ImStream_SavedBitmaps()
> > File "D:\PythonCode\pna\eyeTracking\tests\wrappers_A01.py", line 21,
> > in __init__
> > cbase.CImStream.__init__(self)
> > TypeError: unbound method must be called with class instance 1st
> > argument
>
> Though, I cannot explain how the above typo could cause this exception.
>
> Pearu
Yes, this was a typo, as I explained in my
response to Aahz. An unfortunate distraction
because this does seem to be on odd behavior and I
would like to figure it out. The problem seems to
be in the reload() statement but I can't find
anything in the docs or web that applies, or at
least that I understand to apply. Maybe I'll ask
the list again but without the typo and simplified
class names.
Thanks,
Marc
More information about the Python-list
mailing list