title: How do I do get/set method in Python (specifically Trac)
body: <p>In C-ish languages, I'd mask data storage details with getter/setter methods/functions like:</p>
  
  <pre><code>int getFoo();
  void setFoo(int value);
  </code></pre>
  
  <p>I have some Python that does:</p>
  
  <pre><code>class MyClass:
      def Foo(self):
          ...magic to access foo...
          return value
  </code></pre>
  
  <p>What's the right way to write/name a setter for Foo?  I'm sure it's more idiom than language feature but I'm not sure what's common.  Maybe I need to rename <code>Foo()</code> to <code>getFoo()</code> and match it with <code>setFoo()</code>.  I guess that's OK if that's what is usually done.</p>