mutlifile inheritance problem

Pearu Peterson pearu at cens.ioc.ee
Fri Mar 22 09:29:57 EST 2002


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




More information about the Python-list mailing list