class definition
Yves Dorfsman
yves at zioup.com
Wed May 7 22:53:31 EDT 2008
Miles wrote:
> In Python 2.2, classes and types were unified. If a class inherits
> from object (or any other built-in), it is considered a "new-style"
> class; otherwise, it is an old-style (or classic) class. There are
> some differences in their behavior; most notably, descriptors
> (computer properties) will not work with old-style classes. Old-style
> classes will go away in Python 3 (I think), and all classes will have
> object as a base.
>
> An introduction to new-style classes:
> http://www.cafepy.com/article/python_types_and_objects/python_types_and_objects.html
> A guide to descriptors:
> http://users.rcn.com/python/download/Descriptor.htm
> The reference manual on the distinction:
> http://docs.python.org/ref/node33.html
> The technical explanation:
> http://www.python.org/download/releases/2.2.3/descrintro/
Thanks Miles, I've started to go though those links, that should keep me
busy for a while !
Yves.
http://www.SollerS.ca
More information about the Python-list
mailing list