-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-126332: Fix pyrepl crash for double ctrl-z in line overflow #126650
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to add a new Lib/test/test_pyrepl/test_utils.py
file and add tests on wlen()
and str_width()
functions?
I think we should do this in a separate PR. @eendebakpt do you want to open a PR for that? |
Thanks @eendebakpt for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…ythonGH-126650) (cherry picked from commit d147e5e) Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
GH-129154 is a backport of this pull request to the 3.13 branch. |
…GH-126650) (#129154) gh-126332: Fix pyrepl crash for double ctrl-z in line overflow (GH-126650) (cherry picked from commit d147e5e) Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
@pablogsal I added some tests in #129325 |
Notes:
str_width
method instead of thewlen
method. Both of these are not documented, so I am not sure whether one location should be preferred over the other.