Skip to content

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Oct 9, 2024

…g pyrepl

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
import _pyrepl.unix_console
from _pyrepl.main import CAN_USE_PYREPL
finally:
sys.path = original_path
Copy link
Contributor

Choose a reason for hiding this comment

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

Confirmed this works fine for PYTHONSTARTUP usage (including manipulating sys.path there) as well as keeps sitecustomize.py and usercustomize.py working. Also confirmed asyncio REPL still works in the aforementioned cases.

…YgNWRB.rst

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@ambv ambv enabled auto-merge (squash) October 9, 2024 22:11
@ambv ambv merged commit c7d5d1d into python:main Oct 9, 2024
37 checks passed
@miss-islington-app
Copy link

Thanks @pablogsal for the PR, and @ambv for merging it 🌮🎉.. 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 Oct 9, 2024
…g pyrepl (pythonGH-125212)

(cherry picked from commit c7d5d1d)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Oct 9, 2024

GH-125224 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 Oct 9, 2024
Sign up for free to 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