initializing cooperative method
Jonathan Gardner
jgardner.jonathangardner.net at gmail.com
Thu Sep 6 16:58:28 EDT 2007
On Sep 6, 11:18 am, jelle <jelleferi... at gmail.com> wrote:
> Ai, calling super(Abstract) is just getting object, sure...
>
> However, I'm still curious to know if there's a good idiom for
> repeating the argument in __init__ for the super(Concrete,
> self).__init__ ?
>
If you don't know what the arguments are, you can use *args and
**kwargs.
class Concrete(Abstract):
def __init__(self, *args, **kwargs):
super(Concrete, self).__init__(*args, **kwargs)
More information about the Python-list
mailing list