Extending classes __init__behavior for newbies
James Mills
prologic at shortcircuit.net.au
Sun Feb 13 18:11:47 EST 2011
On Mon, Feb 14, 2011 at 8:39 AM, rantingrick <rantingrick at gmail.com> wrote:
> Did everyone miss the fact that this inheritance is unnecessary?
> Considering the Ship class has an attribute "speed" that will be
> affected (either directly or indirectly) by simply modifying it?
The attribute "speed" was not a member of the
OP's class ship.
cheers
James
--
-- James Mills
--
-- "Problems are solved by method"
More information about the Python-list
mailing list