Skip to content

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 <[email protected]>
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 <[email protected]>
@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 <[email protected]>
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 <[email protected]>
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…ules (pythonGH-136846)

Pedantically reword the section about relative imports and main modules.
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
…ules (pythonGH-136846)

Pedantically reword the section about relative imports and main modules.
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…ain modules (pythonGH-136846) (python#136940)

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

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

Co-authored-by: Josh Cannon <[email protected]>
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