Can I inherit member variables?

Wildemar Wildenburger wildemar at freakmail.de
Thu Sep 21 08:51:18 EDT 2006


Bruno Desthuilliers wrote:
> Gabriel Genellina wrote:
>> When you construct an object instance, it is of a certain type from that
>> precise moment, and you can't change that afterwards.
> 
> Err... Actually, in Python, you can. It's even a no-brainer.

Oh yeah, let's confuse the newbie, shall we :)

The art of teaching lies in what you *don't* tell the teachee in the 
first run.
But factually, you're right. In the course of this OO lesson, however: 
ssshhhhhhhh!

;)
wildemar




More information about the Python-list mailing list