title: What's difference between findall() and iterfind() of xml.etree.ElementTree
body: <p>I write a program using just like below</p>
  
  <pre><code>from xml.etree.ElementTree import ET
  
  xmlroot = ET.fromstring([my xml content])
  
  for element in xmlroot.iterfind(".//mytag"):
      do some thing
  </code></pre>
  
  <p>it works fine on my python (v2.7.1), but after I copy it to another computer installed with python v2.6.x, <code>iterfind()</code> is not supported, on <a href="https://docs.python.org/2/library/xml.etree.elementtree.html" rel="noreferrer">python document</a>,  below description listed</p>
  
  <blockquote>
    <p><strong>findall(match)</strong></p>
    
    <p>Finds all matching subelements, by tag name or path. Returns a list containing all matching elements in document order.</p>
    
    <p><strong>iterfind(match)</strong></p>
    
    <p>Finds all matching subelements, by tag name or path. Returns an iterable yielding all matching elements in document order.</p>
    
    <p>New in version 2.7.</p>
  </blockquote>
  
  <p>my question is: these 2 function is same or not? what's difference between these two functions</p>