is Python fully object oriented ?

Alex Martelli aleaxit at yahoo.com
Fri Jan 12 03:19:07 EST 2001


"Fredrik Lundh" <fredrik at effbot.org> wrote in message
news:GKy76.5649$Qb7.787381 at newsb.telia.net...
> Ben Hutchison wrote:
> > I'd like to see some primary evidence of this "design choice" process,
describing
> > the motivating reasons. Presumably there are some web references
somewhere. My
> > instinct tell me it resembles an implementation consequence, rather than
a free and
> > deliberate choice.
>
>     http://www.python.org/doc/FAQ.html#6.7
>
>     "6.7. Why must 'self' be declared and used explicitly in
>     method definitions and calls?"
>
>     "By asking this question you reveal your C++ background. :-)"

Actually, these days, a very similar question might come from somebody
who's never touched C++ with a 10-foot pole and detests it -- a 100%
Pure Java user, for example.


> (summary: python's not C++.  given Python's object model, this is a
> simple and straightforward solution to the "is this a local variable or
> an instance variable?" problem. and guido likes it. end of story.)

The answer's substance looks impeccable to me -- I was just wondering
about the reference to C++ specifically, which might perhaps cause
some consternation...


Alex






More information about the Python-list mailing list