Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-38792: Remove IDLE shell calltip before new prompt. #17150
Conversation
Calltips should be removed if a KeyboardInterrupt occurs.
This comment has been minimized.
This comment has been minimized.
|
Hi Zack, thanks for this! This doesn't go far enough, actually; we should make sure to close the calltip in other cases too, such as restarting the shell or hitting return to running a statement / block. It is a bit hairy to see where the best place to add this is. Let me know if you're interested in doing more work on this and testing various edge cases. |
|
I tested interrupts and restarts before, during, and after calltips. Before and after had no new problems and during now works properly. I also tested some in editor. Zack, thanks for report and initial fix. I plan to merge tomorrow. @taleinat If you find a way to execute with Enter and have calltip persist, we can try to fix in another PR, making sure to not regress in editor. |
This comment has been minimized.
This comment has been minimized.
|
Even with this fix, it is still easy and common to get a calltip staying open in other ways. For example, hitting Enter in the shell with a calltip open and a syntax error, as in the following image: Removing any open call-tips in |
This comment has been minimized.
This comment has been minimized.
This looks to be working very nicely. I've pushed this change into this PR, I hope you like it! |
This comment has been minimized.
This comment has been minimized.
|
I got the same with I like handling this in one place. Among other reasons, Zack originally used |
bfdeaa3
into
python:master
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Jan 31, 2020
|
Thanks @ZackerySpytz for the PR, and @terryjreedy for merging it |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jan 31, 2020
|
@terryjreedy: Please replace |
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart. Co-authored-by: Terry Jan Reedy <[email protected]> Co-authored-by: Tal Einat <[email protected]> (cherry picked from commit bfdeaa3) Co-authored-by: Zackery Spytz <[email protected]>
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jan 31, 2020
|
GH-18287 is a backport of this pull request to the 3.8 branch. |
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart. Co-authored-by: Terry Jan Reedy <[email protected]> Co-authored-by: Tal Einat <[email protected]> (cherry picked from commit bfdeaa3) Co-authored-by: Zackery Spytz <[email protected]>
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jan 31, 2020
|
GH-18288 is a backport of this pull request to the 3.7 branch. |
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart. Co-authored-by: Terry Jan Reedy <[email protected]> Co-authored-by: Tal Einat <[email protected]> (cherry picked from commit bfdeaa3) Co-authored-by: Zackery Spytz <[email protected]>
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart. Co-authored-by: Terry Jan Reedy <[email protected]> Co-authored-by: Tal Einat <[email protected]> (cherry picked from commit bfdeaa3) Co-authored-by: Zackery Spytz <[email protected]>

ZackerySpytz commentedNov 14, 2019
•
edited by terryjreedy
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart..
https://bugs.python.org/issue38792