[Nipy-devel] attributes vs. traits
Yann Cointepas
yann at sapetnioc.org
Wed May 24 01:16:33 CDT 2006
Another technical comment about traits and properties.
I think a traits replacement cannot rely only on Python properties because
traits can not only be defined on a classes but also on instances. Since
properties can only be defined on a class, it is not possible to add or
remove properties on an object without modifying the object's class. This
modification would then affect the properties of all the instances of the
modified class which is excactly what one want to avoid by using instance
traits.
Yann
--
Yann Cointepas Tel: +33 1 69 86 78 52
CEA - SHFJ Fax: +33 1 69 86 77 86
4, place du General Leclerc
91401 Orsay Cedex France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/nipy-devel/attachments/20060524/dfb8d9da/attachment-0002.html
More information about the Nipy-devel
mailing list