glob.iglob to find all .txt files in all sub-directories yields error
<p>Simple code gives the below error. It's directly from the docs (<a href="https://docs.python.org/3/library/glob.html" rel="noreferrer">https://docs.python.org/3/library/glob.html</a>)</p>

<p><code>TypeError: iglob() got an unexpected keyword argument 'recursive'</code></p>

<pre><code>import glob
for filename in glob.iglob('C:\\**\\*txt', recursive=True):
    print filename
</code></pre>