decorator to prevent adding attributes to class?
Neal Becker
ndbecker2 at gmail.com
Fri Jul 11 11:29:55 EDT 2008
More information about the Python-list mailing list
Fri Jul 11 11:29:55 EDT 2008
- Previous message (by thread): Simple Image Cropper
- Next message (by thread): decorator to prevent adding attributes to class?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
After spending the morning debugging where I had misspelled the name of an attribute (thus adding a new attr instead of updating an existing one), I would like a way to decorate a class so that attributes cannot be (easily) added. I guess class decorators are not available yet (pep 3129), but probably inheritance can be used. Can anyone suggest an implementation?
- Previous message (by thread): Simple Image Cropper
- Next message (by thread): decorator to prevent adding attributes to class?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list