[python-advocacy] Python vs Ruby on Apple site

Brad Allen brad at allendev.com
Sat Dec 1 03:37:48 CET 2007


At 11:20 AM +0800 11/29/07, Bjørn Stabell wrote:

>  > Although their similarities are striking, these scripting languages 
>>  do have some differences. While Python code can contain both objects 
>>  and built-in types, in Ruby everything is an object. There are no 
>>  primitive or built-in types, such as integers. Thus anything in Ruby 
>>  code can accept messages.
>  >
>I thought the type/class unification in 2.2 did away with the big
>"built in types" issue?

I don't know the history, but it's evident that Python's "primitive types"
are objects. Just type dir(1) at the interactive prompt.

Apple's statement here wrongly damage's Python's reputation, and it should
probably be retracted. If they want to comment
on object orientation, they should probably say that everything in both
Ruby and Python are full fledged objects, but that Python does not
force the developer to program in an object oriented style.




More information about the Advocacy mailing list