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 }})

graingert

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.

eryksun

@graingert

@blurb-it @graingert

@graingert @eryksun

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

Choose a reason for hiding this comment

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

Looks ok.

@brettcannon

@graingert

jaraco

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.

@graingert

@brettcannon

This comment was marked as outdated.

@brettcannon

brettcannon

brettcannon

brettcannon

@brettcannon

@graingert

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

Jul 17, 2022

@miss-islington

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

@graingert @miss-islington

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

@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

@miss-islington @graingert

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 eryksun left review comments

@brettcannon brettcannon brettcannon approved these changes

@jaraco jaraco jaraco approved these changes

@MaxwellDupre MaxwellDupre MaxwellDupre approved these changes

@encukou encukou Awaiting requested review from encukou

@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner

@ncoghlan ncoghlan Awaiting requested review from ncoghlan ncoghlan is a code owner

@warsaw warsaw Awaiting requested review from warsaw warsaw is a code owner