This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Update getpath.py to look for os.pyc in __pycache__ folders
Type: behavior Stage: resolved
Components: Extension Modules, Interpreter Core Versions: Python 3.11
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: RusselWebber, docs@python, ned.deily, steve.dower
Priority: normal Keywords:

Created on 2022-03-03 10:53 by RusselWebber, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg414421 - (view) Author: Russel Webber (RusselWebber) * Date: 2022-03-03 10:53
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_LANDMARKS should be updated.
msg414426 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-03-03 11:23
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).
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 91065
2022-03-03 11:23:08steve.dowersetstatus: open -> closed
messages: + msg414426

components: - Documentation
resolution: not a bug
stage: resolved
2022-03-03 10:53:11RusselWebbercreate