title: Odd behavior when randomly choosing function from list and testing which function it was
body: <p>Suppose I have these two functions:</p>
  
  <pre><code>def f1():
      pass
  
  def f2():
      pass
  </code></pre>
  
  <p>If I want to run one of these two functions at random, I can do this:</p>
  
  <pre><code>flist = (f1, f2)
  function = random.choice(flist)()
  </code></pre>
  
  <p>Unfortunatley, when I want to test which function it was using an if statement...</p>
  
  <pre><code>if function == f1:
      print "Good"
  </code></pre>
  
  <p><code>Good</code> is not outputted. Why?</p>