Newbie: Why doesn't this work

petr.jakes.tpc at gmail.com petr.jakes.tpc at gmail.com
Tue Jan 1 13:57:41 EST 2008


Hi all,

I am trying to understand new-style classes in Python and I have found
your postings here.

Gabriel, if I understand it properly, it is necessary to define get/
set/del/doc methods for each attribute for which I want to set the
"property" data descriptor (which triggers get/set/del/doc function
calls upon access to defined attribute).

My question is: is it possible to set the "property" for any attribute
when I do not know what will be the name of the attribute in the
future?

Thanks for your reply

Petr Jakes



More information about the Python-list mailing list