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)
>
>
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
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__
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