title: Why do rfind and find return the same values in Python 2.6.5?
body: <p>I'm relatively new to Python, and something is acting up.  Basically, when I call <code>str.rfind("test")</code> on a string, the output is the same as <code>str.find("test")</code>.  It's best that I show you an example:</p>
  
  <pre><code>Python 2.6.5 (r265:79063, May  6 2011, 17:25:59) 
  [GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import string
  &gt;&gt;&gt; line = "hello what's up"
  &gt;&gt;&gt; line.rfind("what")
  6
  &gt;&gt;&gt; line.find("what")
  6
  </code></pre>
  
  <p>By my understanding, the value of <code>line.find</code> is okay, but the value of <code>line.rfind</code> should be <code>9</code>.  Am I misinterpreting these functions or not using them well?</p>