title: Real world example about how to use property feature in python?
body: <p>I am interested in how to use <code>@property</code> in Python. I've read the python docs and the example there, in my opinion, is just a toy code:</p>
  <pre><code>class C(object):
      def __init__(self):
          self._x = None
  
      @property
      def x(self):
          &quot;&quot;&quot;I'm the 'x' property.&quot;&quot;&quot;
          return self._x
  
      @x.setter
      def x(self, value):
          self._x = value
  
      @x.deleter
      def x(self):
          del self._x
  </code></pre>
  <p>I do not know what benefit(s) I can get from wrapping the <code>_x</code> filled with the property decorator. Why not just implement as:</p>
  <pre><code>class C(object):
      def __init__(self):
          self.x = None
  </code></pre>
  <p>I think, the property feature might be useful in some situations. But when? Could someone please give me some real-world examples?</p>