title: How to make class immutable in python?
body: <p>I have read a lot about this subject here but i still can't find an appropriate answer.
  I have a class like:</p>
  
  <pre><code>class A(object):
  
      def __init__(self, first, second):
          self.first = first
          self.second = second
  
      def __eq__(self, other):
          return ****
  
      def __str__(self):
          return *****
  
      def __repr__(self):
          return **** 
  
  a = A("a", "b")
  </code></pre>
  
  <p>How can i forbid a.first = "c" for example ?</p>