Can you create an instance of a subclass with an existing instance of the base class?

bruno at modulix onurb at xiludom.gro
Tue Apr 25 08:01:47 EDT 2006


Lawrence D'Oliveiro wrote:
> In article <444cb1e3$0$28592$626a54ce at news.free.fr>,
>  bruno at modulix <onurb at xiludom.gro> wrote:
> 
> 
>>Lawrence D'Oliveiro wrote:
>>(snip)
>>
>>>I think you're taking Python's OO-ness too seriously. One of the 
>>>strengths of Python is that it can _look_ like an OO language without 
>>>actually being OO.
>>
>>According to which definition of OO ?
> 
> 
> Isn't there one?

Your claim that Python "_look_ like an OO language without actually
being OO" implicitely relies on a definition of OO - or is just
meaningless. So I ask you: what definition of OO do you use to support
your claim ?

-- 
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