mutlifile inheritance problem
Aahz
aahz at pythoncraft.com
Thu Mar 21 16:20:30 EST 2002
In article <9896e047.0203211303.741f695a at posting.google.com>,
Marc <maurelius01 at hotmail.com> wrote:
>
>************************
>file cbase01.py:
>
>class CBase:
> def __init__(self):
> self.cclass = None
> print "cbase"
>
>class CImStream(CBase):
> def __init(self):
> CBase.__init__(self)
> print "CImStream"
>
>*************************
>in file wrappers_A01.py:
>
>import cbase01
>reload(cbase01)
>
>class ImStream_SavedBitmaps(cbase01.CImStream):
> def __init__(self):
> cbase.CImStream.__init__(self)
> print "SavedBitmaps"
Try:
def __init__(self):
cbase01.CImStream.__init__(self)
Why are you using reload(), anyway?
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"We should forget about small efficiencies, about 97% of the time.
Premature optimization is the root of all evil." --Knuth
More information about the Python-list
mailing list