title: Property setter not working in python 2
body: <p>I have written a Python class but the setter doesn't seem to work.</p>
  
  <p>From <a href="https://docs.python.org/2/library/functions.html#property" rel="nofollow">https://docs.python.org/2/library/functions.html#property</a>:</p>
  
  <blockquote>
    <p>A property object has getter, setter, and deleter methods usable as
    decorators that create a copy of the property with the corresponding
    accessor function set to the decorated function. This is best
    explained with an example:</p>
  
  <pre><code>class C(object):
      def __init__(self):
          self._x = None
  
      @property
      def x(self):
          """I'm the 'x' property."""
          return self._x
  
      @x.setter
      def x(self, value):
          self._x = value
  
      @x.deleter
      def x(self):
          del self._x
  </code></pre>
  </blockquote>
  
  <p>My (example) class:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  
  class PropertyTest:
      def __init__(self):
          self.prop_ = 5
  
      @property
      def prop(self):
          print "Getting prop plus one"
          return self.prop_ + 1
  
      @prop.setter
      def prop(self, propValue):
          print "Assigning prop to " + propValue
          self.prop_ = propValue
  
  t = PropertyTest()
  print t.prop
  t.prop = 10
  print t.prop
  </code></pre>
  
  <p>Expected output:</p>
  
  <blockquote>
    <p>Getting prop plus one </p>
    
    <p>6 </p>
    
    <p>Assigning prop to 10 </p>
    
    <p>Getting prop plus one </p>
    
    <p>11</p>
  </blockquote>
  
  <p>But what I get is this:</p>
  
  <blockquote>
    <p>Getting prop plus one</p>
    
    <p>6</p>
    
    <p>10</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>