Inheriting from object
Sion Arrowsmith
siona at chiark.greenend.org.uk
Thu Jun 30 07:53:44 EDT 2005
Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> wrote:
>Fuzzyman a écrit :
>> *Should* I in fact write :
>>
>> class foo(object):
>> def __init__(self, *args, **kwargs):
>> object.__init__(self)
>>
>> ?
>Nope.
And if you were to do so, surely:
class foo(object):
def __init__(self, *args, **kwargs):
super(foo, self).__init__(self)
would be the preferred way to go?
--
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
___ | "Frankly I have no feelings towards penguins one way or the other"
\X/ | -- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
More information about the Python-list
mailing list