As python does not have concept of constants, would it be possible to raise an exception if an \'constant\' attribute is updated? How?
class MyClass():
Start reading this:
http://docs.python.org/reference/datamodel.html#customizing-attribute-access
You basically write your own version of __setattr__ that throws exceptions for some attributes, but not others.
__setattr__