Inheriting from object

Scott David Daniels Scott.Daniels at Acm.Org
Thu Jun 30 11:54:31 EDT 2005


Sion Arrowsmith wrote:
> ... 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?
> 
Or, perhaps:
     class foo(object):
         def __init__(self, *args, **kwargs):
             super(foo, self).__init__(self, *args, **kwargs)
             ...

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list