Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-91181: drop support for bytes on sys.path #31934

Merged
merged 11 commits into from
Jul 17, 2022

Conversation

graingert
Copy link
Contributor

@graingert graingert commented Mar 16, 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.

@graingert graingert force-pushed the drop-support-for-bytes-on-sys-path branch from 9106835 to 6b8403e Compare March 16, 2022 18:14
@graingert graingert force-pushed the drop-support-for-bytes-on-sys-path branch from 6b8403e to 8a76d18 Compare March 16, 2022 19:49
@graingert graingert marked this pull request as ready for review March 16, 2022 20:44
Copy link
Contributor

@MaxwellDupre MaxwellDupre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok.

@graingert graingert mannequin mentioned this pull request Jun 24, 2022
Copy link
Member

@jaraco jaraco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an authoritative approval, but this approach is my preference.

@brettcannon

This comment was marked as outdated.

@brettcannon brettcannon closed this Jul 8, 2022
@brettcannon brettcannon added the needs backport to 3.11 only security fixes label Jul 12, 2022
@brettcannon brettcannon reopened this Jul 12, 2022
@brettcannon brettcannon added the needs backport to 3.10 only security fixes label Jul 12, 2022
@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
@brettcannon brettcannon merged commit 6da988a into python:main Jul 17, 2022
@miss-islington
Copy link
Contributor

Thanks @graingert for the PR, and @brettcannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

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>
@bedevere-bot
Copy link

GH-94914 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Jul 17, 2022
@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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants