class vs type

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Oct 19 19:45:19 EDT 2007


En Fri, 19 Oct 2007 20:14:03 -0300, Colin J. Williams <cjw at sympatico.ca>  
escribió:

> The Python 3.0 doc, under Class, has:

> Programmer’s note: Variables defined in [...]
> For new-style classes, descriptors can
> be used to create instance variables
> with different implementation details.
>
> Presumably, it is intended that every
> class implicitly inherits from object?

For Python 3.0, yes. Where did you read the above text? The 3.0 docs at
http://docs.python.org/dev/3.0/reference/compound_stmts.html#class-definitions
are already updated and don't menction "new-style classes" at all.

-- 
Gabriel Genellina




More information about the Python-list mailing list