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):
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