title: Preferred way of defining properties in Python: property decorator or lambda?
body: <p>Which is the preferred way of defining class properties in Python and why? Is it Ok to use both in one class?</p>
  
  <pre><code>@property
  def total(self):
      return self.field_1 + self.field_2
  </code></pre>
  
  <p>or</p>
  
  <pre><code>total = property(lambda self: self.field_1 + self.field_2)
  </code></pre>