Explicit Frustration of the Self

Brian Quinlan brian at sweetapp.com
Sat Jan 4 10:11:02 CET 2003

> Another thought: how OO is Python?  

Well, the definition of object-orientation in my software engineering
textbook mentions:

1. Indirection 
2. Encapsulation 
3. Inheritence 
4. Polymorphism

Python has all of above. 

> But do these objects really have methods?  I don't think so.

Then you are wrong.

> Not with the way self acts now.  Right now, you are effectively,
> creating functions and then calling them with the first argument
> outside of the parenthesis, and to the left of the function, and a
> dot.

That is not actually the case. Methods are bound to particular
instances, while functions are not.

But even if you were correct, so what? Your notion of object-orientation
seems very syntactic.


More information about the Python-list mailing list