title: Can I get a reference to a Python property?
body: <p>If I have this:</p>
  
  <pre><code>class foo(object):
      @property
      def bar(self):
          return 0
  
  f = foo()
  </code></pre>
  
  <p>How do I get a reference to f.bar without actually invoking the method, if this is even possible?</p>
  
  <p>Edited to add: What I want to do is write a function that iterates over the members of f and does something with them (what is not important). Properties are tripping me up because merely naming them in getattr() invokes their __get__() method.</p>