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

GH-65961: Stop setting `__package__` on modules by brettcannon · Pull Request #142055 · python/cpython · GitHub

/ cpython Public

GH-65961: Stop setting __package__ on modules - #142055

Closed
brettcannon wants to merge 5 commits into
python:mainfrom
brettcannon:__package__-optional
Closed

GH-65961: Stop setting __package__ on modules#142055
brettcannon wants to merge 5 commits into
python:mainfrom
brettcannon:__package__-optional

Conversation

brettcannon commented Nov 28, 2025
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member Author

This is an alternative to #142046 which doesn't even support using __package__.

Copy link
Copy Markdown
Member Author

This is a draft PR until either someone can tell me what's going on with test_capi or a rip the test out because I don't see how I'm causing the failure in either this PR and #142046 .

ncoghlan 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

LGTM! Just one minor cosmetic comment on the docs.

Comment thread Doc/reference/datamodel.rst Outdated
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>

Copy link
Copy Markdown
Member Author

Unfortunately it looks like pip didn't get the memo about this upcoming change: https://github.com/pypa/pip/blob/36987b0c31b97ffb9fb7949ded628e9a6b10c016/src/pip/__main__.py#L13

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL