title: How to make a read-only class field in Python?
body: <p>It there possibility in python to create a field of a class, what would be accesseble by normal obj.field or getattr(obj,&quot;field&quot;) syntax but would not be able to be modified outside a class - that i call &quot;read-only&quot;, means obj.field =... and setattr(obj,&quot;field&quot;,value) outside a class would not work and raise some exeption.</p>