Skip to content

gh-140326: disable the relative import in asyncio REPL - #140327

Merged
kumaraditya303 merged 2 commits into
python:mainfrom
Locked-chess-official:asyncio_disable_relative_import
Jul 24, 2026
Merged

gh-140326: disable the relative import in asyncio REPL#140327
kumaraditya303 merged 2 commits into
python:mainfrom
Locked-chess-official:asyncio_disable_relative_import

Conversation

@Locked-chess-official

@Locked-chess-officialLocked-chess-official commented Oct 19, 2025

Copy link
Copy Markdown
Contributor

Now it only remove some name in locals to disable the relative import in REPL. To change the loader may be too hard.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsBot added the stale Stale PR or inactive for long period of time. label May 1, 2026
Comment threadLib/asyncio/__main__.py Outdated
@github-actionsgithub-actionsBot removed the stale Stale PR or inactive for long period of time. label Jul 23, 2026
@kumaraditya303
kumaraditya303force-pushed the asyncio_disable_relative_import branch from e6b48ae to 49217b5CompareJuly 24, 2026 14:06
@kumaraditya303
kumaraditya303 merged commit fb64db2 into python:mainJul 24, 2026
50 checks passed
@kumaraditya303kumaraditya303 added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jul 24, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @Locked-chess-official for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app

Copy link
Copy Markdown

Thanks @Locked-chess-official for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

Copy link
Copy Markdown

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

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Jul 24, 2026
@bedevere-app

Copy link
Copy Markdown

GH-154628 is a backport of this pull request to the 3.15 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jul 24, 2026
kumaraditya303 added a commit that referenced this pull request Jul 27, 2026
) (#154627)
gh-140326: disable the relative import in asyncio REPL (GH-140327)
(cherry picked from commit fb64db2)
Co-authored-by: Locked-chess-official <13140752715@163.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
kumaraditya303 added a commit that referenced this pull request Jul 27, 2026
) (#154628)
gh-140326: disable the relative import in asyncio REPL (GH-140327)
(cherry picked from commit fb64db2)
Co-authored-by: Locked-chess-official <13140752715@163.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Sign up for freeto 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.

3 participants

@Locked-chess-official@kumaraditya303@nazeerali4325-commits