Can you create an instance of a subclass with an existing instance of the base class?
Steve Holden
steve at holdenweb.com
Sat Apr 29 12:01:14 EDT 2006
Lawrence D'Oliveiro wrote:
> In article <444e0fff$0$7724$636a55ce at news.free.fr>,
> bruno at modulix <onurb at xiludom.gro> wrote:
>
>
>>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.
>
>
> Which nicely evades answering the question.
Well I have to say you are also nicely evading answering the question,
which is enough to make me suspect your are trolling (deliberately
asking contentious questions for the purposes of creating futile
argument and discussion).
If you *aren't* trolling then what's your objection to saying what led
you to make the assertion that Python could look like an OO language
without being one?
But sine you say later that "Python objects are basically dictionaries"
it's clear your understanding of Python isn't terribly complete, which
might cast doubt on your understanding of object orientation.
For the record, Python *is* an object-oriented language, but it happens
to offer convenient features for procedural programming as well. Since
these features are orthogonal to its OO features, the fact that they
exist doesn't stop Python from being an OO language.
So why do you assert that it "merely looks like" one?
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Love me, love my blog http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list