Re: __init__

Jack Jansen (Jack.Jansen@cwi.nl)
Tue, 18 May 1993 10:07:30 +0200

How about a little bit of extra syntax that allows the programmer to
declare whether python should call the base class __init__()'s
directly or not? So, something like:

class Base():
def __init__(self, arg):
...
return self

class Der_one(Base):
def __init__(self, arg): # Base.__init__ called automatically
...
return self

class Der_two(*Base):
def __init__(self, arg1, arg2):
self = Base.__init__(self,arg1) # Not called automatically
...
return self

--
Jack Jansen        | If I can't dance I don't want to be part of
Jack.Jansen@cwi.nl | your revolution             -- Emma Goldman
uunet!cwi.nl!jack    G=Jack;S=Jansen;O=cwi;PRMD=surf;ADMD=400net;C=nl