Can I inherit member variables?

Bruno Desthuilliers onurb at xiludom.gro
Thu Sep 21 08:14:59 EDT 2006


Gabriel Genellina wrote:
(snip)
> 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.

(snip)

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list