Re: ancestor class' __init__ doesn't call other methods

2006-09-15 Thread Bruno Desthuilliers
Luis P. Mendes a écrit : > Hi, > > I have the following problem: > > I instantiate class Sistema from another class. The result is the same > if I import it to interactive shell. > > s = Sistema("par") > > class Sistema: > def __init__(self, par): > cruza_ema = CruzaEmas(par) > >

Re: ancestor class' __init__ doesn't call other methods

2006-09-15 Thread Luis P. Mendes
Rob De Almeida escreveu: > Luis P. Mendes wrote: >> Method a() is not called. Why is this? What is the best option to >> solve this? Have Cotacoes returning values and not to be an ancestor >> class of CruzaEmas? > > It works for me, after rearranging your code a little bit: > Ok, thanks. I alr

Re: ancestor class' __init__ doesn't call other methods

2006-09-15 Thread Rob De Almeida
Luis P. Mendes wrote: > Method a() is not called. Why is this? What is the best option to > solve this? Have Cotacoes returning values and not to be an ancestor > class of CruzaEmas? It works for me, after rearranging your code a little bit: class Ema: pass class Sistema: def __init__

ancestor class' __init__ doesn't call other methods

2006-09-15 Thread Luis P. Mendes
Hi, I have the following problem: I instantiate class Sistema from another class. The result is the same if I import it to interactive shell. s = Sistema("par") class Sistema: def __init__(self, par): cruza_ema = CruzaEmas(par) class CruzaEmas(Ema, Cotacoes): def __init__(self