My python annoyances so far

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Fri Apr 27 06:47:23 EDT 2007


Marc 'BlackJack' Rintsch a écrit :
> In <mailman.7009.1177609528.32031.python-list at python.org>, Steven Howe
> wrote:
> 
>> And before someone get's all technical, I know everything in Python is 
>> an 'object' even None, which implies class, or is it the other way around?
> 
> Objects don't imply classes.  There are object oriented languages without
> classes like the Io language.  Everything there is an object and the base
> object has a `clone()` method to make a copy.  So you make copies of
> objects and modify them to tweak them into the way you want them.

And FWIW, in Python, classes are objects too, and are attributes of 
their instances. Which makes Python quite close to prototype-based 
languages like Io, Self or Javascript.



More information about the Python-list mailing list