Referring to the class name from a class variable where inheritance is involved
Ian Kelly
ian.g.kelly at gmail.com
Tue Dec 6 13:21:39 EST 2011
On Tue, Dec 6, 2011 at 11:12 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> If you like, you can also expand classproperty to allow setters and
> deleters like property does.
My mistake, you can't do this. __set__ and __delete__ are only
invoked on instances, not on the class. Get-only class properties are
fine, though.
More information about the Python-list
mailing list