-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-36589: Fix the error handling in curses.update_lines_cols() #12766
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
bpo-36589: Fix the error handling in curses.update_lines_cols() #12766
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.
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