gh-91181: drop support for bytes on sys.path by graingert · Pull Request #31934 · python/cpython

eryksun

@graingert

@blurb-it @graingert

Co-authored-by: Eryk Sun <eryksun@gmail.com>

@graingert

@graingert

@graingert graingert marked this pull request as ready for review

March 16, 2022 20:44

MaxwellDupre

@brettcannon

@graingert

@graingert

@brettcannon

brettcannon

brettcannon

brettcannon

@brettcannon

@graingert

@brettcannon brettcannon changed the title bpo-47025: drop support for bytes on sys.path gh-91181: drop support for bytes on sys.path

Jul 17, 2022

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 17, 2022
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>
(cherry picked from commit 6da988a)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>

@graingert graingert deleted the drop-support-for-bytes-on-sys-path branch

July 17, 2022 01:08

miss-islington added a commit that referenced this pull request

Jul 17, 2022
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>
(cherry picked from commit 6da988a)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>