Skip to content

gh-119102: Fix REPL for dumb terminal - #119332

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:pyrepl_dumb2
May 21, 2024
Merged

gh-119102: Fix REPL for dumb terminal#119332
vstinner merged 2 commits into
python:mainfrom
vstinner:pyrepl_dumb2

Conversation

@vstinner

@vstinnervstinner commented May 21, 2024

Copy link
Copy Markdown
Member

The site module gets the main module to get _pyrepl.main.

The site module gets the __main__ module to get _pyrepl.__main__.
Comment threadLib/site.py Outdated
@lysnikolaoulysnikolaou added skip news topic-repl Related to the interactive shell labels May 21, 2024

@lysnikolaoulysnikolaou 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.

LGTM!

@eugenetriguba

eugenetriguba commented May 21, 2024

Copy link
Copy Markdown
Contributor

@vstinner I took a crack at it here when I noticed the first PR that had the mypy fix reverted the bug fix: #119328. Do you have a preference of approach? Happy to close that one out or try to get that test properly working in that PR and just try to get that merged in instead 🙂

@danielhollasdanielhollas 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.

Works for me!

@vstinner
vstinner enabled auto-merge (squash) May 21, 2024 18:55
@vstinner

Copy link
Copy Markdown
MemberAuthor

Thanks for the review and testing!

@vstinner
vstinner merged commit de8f530 into python:mainMay 21, 2024
@vstinner
vstinner deleted the pyrepl_dumb2 branch May 21, 2024 20:33
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 21, 2024
The site module gets the __main__ module to get _pyrepl.__main__.
(cherry picked from commit de8f530)
Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app

Copy link
Copy Markdown

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

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label May 21, 2024
lysnikolaou pushed a commit that referenced this pull request May 22, 2024
The site module gets the __main__ module to get _pyrepl.__main__.
(cherry picked from commit de8f530)
Co-authored-by: Victor Stinner <vstinner@python.org>
@JelleZijlstraJelleZijlstra mentioned this pull request May 28, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
The site module gets the __main__ module to get _pyrepl.__main__.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstopic-replRelated to the interactive shell

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner@eugenetriguba@danielhollas@lysnikolaou