gh-126332: Fix pyrepl crash for double ctrl-z in line overflow - #126650
Conversation
vstinner
left a comment
There was a problem hiding this comment.
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_widthmethod instead of thewlenmethod. Both of these are not documented, so I am not sure whether one location should be preferred over the other.