]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91181: drop support for bytes on sys.path (GH-31934)
authorThomas Grainger <tagrain@gmail.com>
Sun, 17 Jul 2022 01:07:53 +0000 (02:07 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Jul 2022 01:07:53 +0000 (18:07 -0700)
commit6da988a46c8955755624ad9878288d5214fceb4e
treebc3d48d836bb49b52f76761f776ec8c0440793a2
parent2e9da8e3522764d09f1d6054a2be567e91a30812
gh-91181: drop support for bytes on sys.path (GH-31934)

Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it.

Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
Doc/library/sys.rst
Doc/reference/import.rst
Lib/importlib/_bootstrap_external.py
Lib/test/test_zipimport.py
Lib/zipimport.py
Misc/NEWS.d/next/Library/2022-03-16-14-24-14.bpo-47025.qtT3CE.rst [new file with mode: 0644]