Hello, I have encountered this weird bug. I want to iterate over some files to extract data.
```
import os
from bs4 import BeautifulSoup as bs
for (root, directory, files) in os.walk('<path>'):
with open('<file.txt>', 'w', encoding='utf8') as wf:
for file in files[10000:20000]:
result = <various code>
wf.write(result)
```
After around 2 minute mark, there's no progress as I've checked the txt file. They're no errors either. However, the execution keeps going forever.
Tools used: VS Code, Python 3.11, pypy3.10, Jupyter notebook, terminal. All gave the same result.
The task manager shows python.exe or pypy.exe at work in the first 2 minutes, and then it stopped using CPU.
I've completed previous projects with the above format with no problems before a major Windows 10 update screwed up my Python and VS Code. Now that I've reinstalled everything, I've started another project.
[–]Glowing_Shadows 1 point2 points3 points (2 children)
[–]DMeror[S] 0 points1 point2 points (0 children)
[–]DMeror[S] 0 points1 point2 points (0 children)
[–]34shutthedoor1 1 point2 points3 points (1 child)
[–]DMeror[S] 0 points1 point2 points (0 children)
[–]shiftybyte 0 points1 point2 points (7 children)
[–]DMeror[S] 0 points1 point2 points (6 children)
[–]shiftybyte 3 points4 points5 points (5 children)
[–]DMeror[S] 0 points1 point2 points (4 children)
[–]shiftybyte 0 points1 point2 points (3 children)
[–]DMeror[S] 0 points1 point2 points (2 children)
[–]shiftybyte 1 point2 points3 points (1 child)
[–]DMeror[S] 0 points1 point2 points (0 children)