Skip to content

gh-149392: Add "Open Input in Editor" support in PyREPL#149393

Open
tanloong wants to merge 6 commits intopython:mainfrom
tanloong:pyrepl-edit-in-external-editor
Open

gh-149392: Add "Open Input in Editor" support in PyREPL#149393
tanloong wants to merge 6 commits intopython:mainfrom
tanloong:pyrepl-edit-in-external-editor

Conversation

@tanloong
Copy link
Copy Markdown
Contributor

@tanloong tanloong commented May 5, 2026

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 5, 2026

tanloong added 2 commits May 6, 2026 21:19
Problem: Suppose type 'im' in PyREPL and then enter editor, completing the statement 'import os'. After saving and exiting, there will be '>>> im>>> import os' instead of '>>> import os'.

With a 'r.console.repaint()', the problem is gone, but only on Linux. On Windows, the 'replaint()' is not implemented in windows_console.py and the '>>> im>>> import os' problem persists. I suppose 'replaint()' is not the way to go.

Remove 'r.console.repaint()' and go to find a solution workable on all platforms, not only Linux.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant