title: Pathlib issue: iteration over pathlist ist skipped -> Why?
body: <p>I would be happy to learn why the for loop is not being executed? Event though a list of WindowsPaths gets printed. Thank you very much in advance.</p>
  <pre><code>from pathlib import Path
  
  pathlist = Path(&quot;test_data&quot;).glob('**/*some_file*.json')
  print(list(pathlist))
  
  for path in pathlist:
      print(&quot;This never gets printed.&quot;)
  </code></pre>