FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

/ cpython Public

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

Merged
brettcannon merged 11 commits into
python:mainfrom
graingert:drop-support-for-bytes-on-sys-path
Jul 17, 2022
Merged

gh-91181: drop support for bytes on sys.path#31934
brettcannon merged 11 commits into
python:mainfrom
graingert:drop-support-for-bytes-on-sys-path

Conversation

graingert commented Mar 16, 2022
edited by brettcannon
Loading

Copy link
Copy Markdown
Contributor

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.

Comment thread Doc/library/sys.rst Outdated
graingert force-pushed the drop-support-for-bytes-on-sys-path branch from 9106835 to 6b8403e Compare March 16, 2022 18:14
graingert force-pushed the drop-support-for-bytes-on-sys-path branch from 6b8403e to 8a76d18 Compare March 16, 2022 19:49
graingert marked this pull request as ready for review March 16, 2022 20:44

MaxwellDupre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks ok.

graingert mannequin mentioned this pull request Jun 24, 2022

jaraco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

This comment was marked as outdated.

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

Copy link
Copy Markdown
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>

Copy link
Copy Markdown

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

bedevere-bot removed the needs backport to 3.11 only security fixes label Jul 17, 2022
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>
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
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


Back | FazBrowse Home | New Git URL