is Python fully object oriented ?
Fredrik Lundh
fredrik at effbot.org
Fri Jan 12 02:54:14 EST 2001
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. :-)"
(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.)
Cheers /F
More information about the Python-list
mailing list