Re: Mark attribute as read-only

2005-03-16 Thread Steven Bethard
Florian Lindner wrote: how can I mark a attribute of a class as read-only (for non classmembers)? Yes, stupid question, but the docu gave me no help. Declare it as such in the documentation. ;) If you want to provide error messages, you could alternatively define a property: py> class C(object):

Mark attribute as read-only

2005-03-16 Thread Florian Lindner
Hello, how can I mark a attribute of a class as read-only (for non classmembers)? Yes, stupid question, but the docu gave me no help. Thanks, Florian -- http://mail.python.org/mailman/listinfo/python-list