Message25401
Logged In: YES
user_id=1140154
From my point of view (I'm just learning Python) there is only a
simple difference between old and new style classes, just the
(object) while defining a class.
For sure, we can close this. My questions were answered :-)
So my suggestions for adding info to the documentation:
"Python Tutorial": Chap. 9.3., ex.
With Python 2.2 new style classes were introduced. These new
style classes are inherited from 'object' base class and
supporting
newer features like properties, slots etc.. It is
recommended to use
new style classes.
"Python Library Reference": Chap. 2.1 Built-in Functions, ex.
property([fget[, fset[, fdel[, doc]]]])
[....]
New in Python 2.2. Properties only can applied to new style
classes. See also "D. Glossary" -> new style classes for more
details. |
|
Date |
User |
Action |
Args |
2007-08-23 14:32:04 | admin | link | issue1207379 messages |
2007-08-23 14:32:04 | admin | create | |
|