gh-91181: drop support for bytes on sys.path by graingert · Pull Request #31934 · python/cpython (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation7 Commits11 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
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
graingert marked this pull request as ready for review
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok.
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.
This comment was marked as outdated.
brettcannon changed the title
bpo-47025: drop support for bytes on sys.path gh-91181: drop support for bytes on sys.path
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
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 deleted the drop-support-for-bytes-on-sys-path branch
miss-islington added a commit that referenced this pull request
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
Reviewers
eryksun eryksun left review comments
brettcannon brettcannon approved these changes
jaraco jaraco approved these changes
MaxwellDupre MaxwellDupre approved these changes
encukou Awaiting requested review from encukou
ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
ncoghlan Awaiting requested review from ncoghlan ncoghlan is a code owner
warsaw Awaiting requested review from warsaw warsaw is a code owner