Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-118877: Fix AssertionError crash in pyrepl#118936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ambv merged 2 commits intopython:mainfromdanielhollas:fix-pyrepl-tab-up
May 20, 2024

Conversation

danielhollas
Copy link
Contributor

@danielhollasdanielhollas commentedMay 11, 2024
edited by bedevere-appbot
Loading

A crash of the new pyrepl was triggered by pressing up arrow when tab completion menu was displayed.Fixes#118877

While this simple fix does the trick, as@lysnikolaou mentioned in a#118877 (comment), there are other issues with how arrows interact with tab completions menu, so a more holistic fix might be needed eventually.
I am hoping this is still useful to at least stop interpreter from crashing. Also the added test can serve is as a regression test.

(it took me quite a while to figure out how to write the test, suggestions how to improve it are welcome 🙏 )

A crash of the new pyrepl was triggered bypressing up arrow when tab completion menu was displayed.
@Eclips4Eclips4 added the topic-replRelated to the interactive shell labelMay 11, 2024
@ambvambv merged commitc0d81b2 intopython:mainMay 20, 2024
@danielhollasdanielhollas deleted the fix-pyrepl-tab-up branchMay 20, 2024 19:03
@lysnikolaoulysnikolaou added the needs backport to 3.13bugs and security fixes labelMay 21, 2024
@miss-islington-app
Copy link

Thanks@danielhollas 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 requestMay 21, 2024
(cherry picked from commitc0d81b2)Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
@bedevere-app
Copy link

GH-119363 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMay 21, 2024
lysnikolaou pushed a commit that referenced this pull requestMay 22, 2024
…9363)(cherry picked from commitc0d81b2)Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
estyxx pushed a commit to estyxx/cpython that referenced this pull requestJul 17, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
skip newstopic-replRelated to the interactive shell
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AssertionError occurs using 3.130b1 interactive mode when pressed tab and up arrow
4 participants
@danielhollas@ambv@lysnikolaou@Eclips4

[8]ページ先頭

©2009-2025 Movatter.jp