The Python standard library and PEP8

Martin P. Hellwig martin.hellwig at dcuktec.org
Sun Apr 19 18:01:11 EDT 2009


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



More information about the Python-list mailing list