Re: run Parent __init__

2016-04-27 Thread Григор Колев
I create menu in class A I create html tables with column and row In class B i must change only get method. сряда, 27 април 2016 г., 17:22:59 UTC+3, Vijay Khemlani написа: > > Class B shouldn't extend View, A already does > > It doesn't make a lot of sense to call the constructor again (__init__

Re: run Parent __init__

2016-04-27 Thread Vijay Khemlani
Class B shouldn't extend View, A already does It doesn't make a lot of sense to call the constructor again (__init__) from another method (get) On Wed, Apr 27, 2016 at 11:18 AM, Григор Колев wrote: > Where is the problem in this code. > > class A (View): > > def __init__(self): > se

run Parent __init__

2016-04-27 Thread Григор Колев
Where is the problem in this code. class A (View): def __init__(self): self.data = ['1', '2'] def get(self, request): pass class B (View, A): def get(self, request): A.__init__(self) -- You received this message because you are subscribed to the G