Calling __init__ with multiple inheritance
Steven Bethard
steven.bethard at gmail.com
Tue Mar 29 02:02:35 EST 2005
Axel Straschil wrote:
> I came to the following:
>
> For single inheritance, super is a nice tool if you will recfactoring
> the class later.
>
> For multiple inheritance, if you want to use super, you have to have
> very much knowledge of the classes you inheritance.
And for multiple inheritance, if you don't use super, you're likely to
call the same method twice if you ever have a diamond inheritance problem.
STeVe
More information about the Python-list
mailing list