Skip to content

Pedantic rewording of why relative importing doesn't work in main modules #136846

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

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

thejcannon
Copy link
Contributor

@thejcannon thejcannon commented Jul 20, 2025

Was writing a blog post and wanted to quote this, but realized it's technically incorrect so thought I'd give a whirl fixing it.


📚 Documentation preview 📚: https://cpython-previews--136846.org.readthedocs.build/

Pedantically reword the section about relative imports and main modules.
@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Jul 20, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Jul 20, 2025
@thejcannon thejcannon changed the title Pedantic rewording Pedantic rewording of why relative importing doesn't work in main modules Jul 20, 2025
Copy link

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

new working sounds good

@gpshead gpshead added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jul 21, 2025
@gpshead gpshead merged commit 4b68289 into python:main Jul 21, 2025
47 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Jul 21, 2025
@miss-islington-app
Copy link

Thanks @thejcannon for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 21, 2025
…ules (pythonGH-136846)

Pedantically reword the section about relative imports and main modules.
(cherry picked from commit 4b68289)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 21, 2025
…ules (pythonGH-136846)

Pedantically reword the section about relative imports and main modules.
(cherry picked from commit 4b68289)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Jul 21, 2025

GH-136940 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jul 21, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jul 21, 2025

GH-136941 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 21, 2025
gpshead pushed a commit that referenced this pull request Jul 21, 2025
…ain modules (GH-136846) (#136940)

Pedantic rewording of why relative importing doesn't work in main modules (GH-136846)

Pedantically reword the section about relative imports and main modules.
(cherry picked from commit 4b68289)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
gpshead pushed a commit that referenced this pull request Jul 21, 2025
…ain modules (GH-136846) (#136941)

Pedantic rewording of why relative importing doesn't work in main modules (GH-136846)

Pedantically reword the section about relative imports and main modules.
(cherry picked from commit 4b68289)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants