Re: Error when calling superclass __init__ method

2008-05-18 Thread Peter Otten
Maese Fernando wrote: > I'm getting an odd error while trying to call the __init__ method of a > super class: > > BaseField.__init__(self) > TypeError: unbound method __init__() must be called with BaseField > instance as first argument (got nothing instead) > > > This is the code: No, it isn'

Error when calling superclass __init__ method

2008-05-18 Thread Maese Fernando
Hi, I'm getting an odd error while trying to call the __init__ method of a super class: BaseField.__init__(self) TypeError: unbound method __init__() must be called with BaseField instance as first argument (got nothing instead) This is the code: class BaseField(object): def _addFieldsTo