title: Is there a way to loop through and execute all of the functions in a Python class?
body: <p>I have</p>
  
  <pre><code>class Foo():
      function bar():
          pass
  
      function foobar():
          pass
  </code></pre>
  
  <p>Rather than executing each function one by one as follows:</p>
  
  <pre><code>x = Foo()
  x.bar()
  x.foobar()
  </code></pre>
  
  <p>is there a built-in way to loop through and execute each function in the sequence in which they are written in the class?</p>