Re: Inheriting from object
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Inheriting from object

From: Scott David Daniels <Scott.Daniels@Acm.Org>
Date: Thu Jun 30 2005 - 17:54:31 CEST

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@Acm.Org
Received on Thu Sep 29 16:40:12 2005