Emmanuel Surleau wrote:
What makes you think Python is "an OO language"?
Python is a dynamic object-oriented programming language that can be used
for many kinds of software development.
First line on the Python official website. Was this a trick question?
What kind of OO
language allows you to do this:
def square(x):
return x*x
for i in range(10):
print square(x)
Ruby, for instance.
Allowing for procedural-style programming does not mean that a language
does not implement (even imperfectly) an OO paradigm.
Besides, calling Python Object-Orientated is a bit of an insult :-). I
would say that Python is Ego-Orientated, it allows me to do what I want.
--
MPH
http://blog.dcuktec.com
--
http://mail.python.org/mailman/listinfo/python-list