]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125843: indicate which C function caused a `curses.error` (#125844)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 19 May 2025 13:53:39 +0000 (15:53 +0200)
committerGitHub <noreply@github.com>
Mon, 19 May 2025 13:53:39 +0000 (15:53 +0200)
commitee36db550076e5a9185444ffbc53eaf8157ef04c
tree92bcaec7f47fd06d5264335aaa8e3ecf954cdb10
parentc31547a5914db93b8b38c6a5261ef716255f3582
gh-125843: indicate which C function caused a `curses.error` (#125844)

- Rename error helpers with a `curses_set_error_*` prefix instead of `PyCurses*`.
- Cleanly report both NULL and ERR cases.
- Raise `curses.error` in `is_linetouched` instead of a `TypeError`.
Include/py_curses.h
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2024-10-22-16-21-55.gh-issue-125843.2ttzYo.rst [new file with mode: 0644]
Modules/_cursesmodule.c