Stop assignment of a class attribute?
Terry Reedy
tjreedy at home.com
Sun Aug 19 19:10:10 EDT 2001
"Al Gonzalez" <alberto at mindspring.com> wrote in message
news:9lpcnh02991 at enews1.newsguy.com...
> I can overload the __setattr__ and __delattr__ to make instance
attributes
> immutable, but I don't see how it can be done for class attributes.
Can't for normal classes.
> Does anyone have any ideas?
It may be possible with metaclasses, but I cannot help you there.
Terry J. Reedy
More information about the Python-list
mailing list