is it possible to add a property to an instance?
aisaac at american.edu
Fri Feb 20 19:27:33 CET 2009
Darren Dale wrote to GHUM:
> Sorry, that's an attribute, not a property.
This is a question about terminology.
In contrast to Darren's recommended usage,
I have run into the following.
If hasattr(x,'a') is True, for instance object `x`,
then `a` is an attribute of `x`.
Attributes are data attributes or callable attributes.
Data attributes are variables or properties.
Callable attributes are usually method attributes.
This seemed about right to me, but a better
(or "official") taxonomy would be welcome.
More information about the Python-list