>
>
> Where is the buggy code? Show me how Ship.__init__() can break. Anyone
> can argue, few can offer facts. If you bring an argument that
> Ship.__init__() can break if someone changes the code then that IS NOT
> an valid argument. ANY code can be broken with the addition or
> subtraction of a single char.
>
>
The idea of using super() is that it works with single inheritance and
multiple inheritance.
If after a while your FasterShip extends from Ship and Bird, your
Ship.__init__() will still work BUT it may not be calling the right code. So
using super() is less error prone.

The official documentation also recommends to use super()

http://docs.python.org/library/functions.html#super


-- 
Mauro Cáceres
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to