Re: Need help with syntax on inheritance.

2006-10-04 Thread Calvin Spealman
On 3 Oct 2006 19:09:53 -0700, SpreadTooThin [EMAIL PROTECTED] wrote: If you are deriving a new class from another class, that you must (I assume) know the initializer of the other class. So in myClass import array class myClass(arrary.array): def __init__(self, now here I need to put

Re: Need help with syntax on inheritance.

2006-10-04 Thread Peter Otten
SpreadTooThin wrote: If you are deriving a new class from another class, that you must (I assume) know the initializer of the other class. So in myClass import array class myClass(arrary.array): def __init__(self, now here I need to put array's constructor parameters..., then mine):

Re: Need help with syntax on inheritance.

2006-10-04 Thread SpreadTooThin
Peter Otten wrote: SpreadTooThin wrote: If you are deriving a new class from another class, that you must (I assume) know the initializer of the other class. So in myClass import array class myClass(arrary.array): def __init__(self, now here I need to put array's constructor

Re: Need help with syntax on inheritance.

2006-10-04 Thread Peter Otten
SpreadTooThin wrote: the =() syntax indicates what? No special syntax, just an empty tuple as a default parameter. In this case I could have used an empty list, too, but I thought I'd spare you the dangers of mutable default values as explained here: http://www.python.org/doc/faq/general/#id53

Need help with syntax on inheritance.

2006-10-03 Thread SpreadTooThin
If you are deriving a new class from another class, that you must (I assume) know the initializer of the other class. So in myClass import array class myClass(arrary.array): def __init__(self, now here I need to put array's constructor parameters..., then mine):

Re: Need help with syntax on inheritance.

2006-10-03 Thread jordan . nick
SpreadTooThin wrote: If you are deriving a new class from another class, that you must (I assume) know the initializer of the other class. So in myClass import array class myClass(arrary.array): def __init__(self, now here I need to put array's constructor parameters..., then mine):