; [EMAIL PROTECTED] wrote:
> > Hello I have a question about inheritance in Python. I'd like to do
> > something like this:
> >
> > class cl1:
> > def __init__(self):
> >self.a = 1
> >
> > class cl2(cl1):
> > def __init__(self):
>
[EMAIL PROTECTED] wrote:
> Hello I have a question about inheritance in Python. I'd like to do
> something like this:
>
> class cl1:
> def __init__(self):
>self.a = 1
>
> class cl2(cl1):
> def __init__(self):
>self.b = 2
>
> But in such a
Thanks.
Jp Calderone wrote:
> On 8 May 2005 12:07:58 -0700, [EMAIL PROTECTED] wrote:
> >Hello I have a question about inheritance in Python. I'd like to do
> >something like this:
> >
> > class cl1:
> > def __init__(self):
> > self.a = 1
&g
On 8 May 2005 12:07:58 -0700, [EMAIL PROTECTED] wrote:
>Hello I have a question about inheritance in Python. I'd like to do
>something like this:
>
> class cl1:
> def __init__(self):
> self.a = 1
>
> class cl2(cl1):
> def __init__(self):
> self.b = 2
>
Hello I have a question about inheritance in Python. I'd like to do
something like this:
class cl1:
def __init__(self):
self.a = 1
class cl2(cl1):
def __init__(self):
self.b = 2
But in such a way that cl2 instances have atributes 'b' AND 'a'.
Obviously, thi