[issue46909] Update getpath.py to look for os.pyc in __pycache__ folders

2022-03-03 Thread Steve Dower
Steve Dower added the comment: It's looking for a precompiled bundled stdlib, rather than one that's been generated from adjacent source files. This is deliberate (also quite an advanced scenario, but it does get used). -- components: -Documentation resolution: -> not a bug stage:

[issue46909] Update getpath.py to look for os.pyc in __pycache__ folders

2022-03-03 Thread Russel Webber
New submission from Russel Webber : The STDLIB_LANDMARKS in Modules/getpath,py refers to os.pyc in an old location: STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}/os.py', f'{STDLIB_SUBDIR}/os.pyc'] Since https://www.python.org/dev/peps/pep-3147 the .pyc files are in __pycache__ folders. The STDLIB_LA