Dynamic use of property() fails

andrew cooke andrew at acooke.org
Mon Apr 14 22:36:06 EDT 2008


[Gabriel:]
> The "magic" happens when the descriptor is found in the *class*, not in
> the instance. I think it's detailed in Hettinger's document.
> Do you actually want "per-instance" defined properties?

ah!  ok.  yes, you're right: i want instance values but class
properties, so i'll rethink things.  thanks very much!

> __special__ names are reserved for Python internal usage; don't use them.
> Implementation-only attributes ("private" ones) are spelled with a single
> underscore.

ah, yes, sorry about that.

thanks again for the quick reply,
andrew



More information about the Python-list mailing list