bpo-36589: Fix the error handling in curses.update_lines_cols()#12766
Conversation
serhiy-storchaka
left a comment
There was a problem hiding this comment.
I suggest to keep the C function returning 0 on error, and make _curses.update_lines_cols returning None instead of 1 in normal case.
|
Please add also a NEWS entry. |
|
Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
|
Sorry, @ZackerySpytz and @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry @ZackerySpytz and @serhiy-storchaka, I had trouble checking out the |
…honGH-12766) Return None instead of 1.
…honGH-12766) Return None instead of 1.
pythonGH-12766) Return None instead of 1.. (cherry picked from commit 2bc3434) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
GH-24023 is a backport of this pull request to the 3.8 branch. |
https://bugs.python.org/issue36589