Skip to content

Conversation

@picnixz
Copy link
Member

@picnixzpicnixz commented May 20, 2025

@picnixz
Copy link
MemberAuthor

I've removed useless comments because I think it'll only confuse readers.

@picnixzpicnixz requested a review from vstinnerMay 23, 2025 12:31
picnixzand others added 2 commits May 24, 2025 23:44
Co-authored-by: Victor Stinner <vstinner@python.org>
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please add a NEWS entry. You should document that some functions can now fail and that the exception type changed in some existing error handling code paths.

@picnixzpicnixz enabled auto-merge (squash) May 27, 2025 09:55
@picnixzpicnixz disabled auto-merge May 27, 2025 09:55
@picnixzpicnixz enabled auto-merge (squash) May 27, 2025 09:57
@picnixzpicnixz merged commit 30dde1e into python:mainMay 27, 2025
39 checks passed
@picnixzpicnixz deleted the fix/curses/more-error-reports-133579 branch May 30, 2025 13:52
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…on#134327) Some curses module-level functions and window methods now raise a `curses.error` when a call to a C curses function fails: - Module-level functions: assume_default_colors, baudrate, cbreak, echo, longname, initscr, nl, raw, termattrs, termname, and unctrl. - Window methods: addch, addnstr, addstr, border, box, chgat, getbkgd, inch, insstr, and insnstr. In addition, `curses.window.refresh` and `curses.window.noutrefresh` now raise a `TypeError` instead of a `curses.error` when called with an incorrect number of arguments for pads. See also ee36db5 for similar changes.
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…on#134327) Some curses module-level functions and window methods now raise a `curses.error` when a call to a C curses function fails: - Module-level functions: assume_default_colors, baudrate, cbreak, echo, longname, initscr, nl, raw, termattrs, termname, and unctrl. - Window methods: addch, addnstr, addstr, border, box, chgat, getbkgd, inch, insstr, and insnstr. In addition, `curses.window.refresh` and `curses.window.noutrefresh` now raise a `TypeError` instead of a `curses.error` when called with an incorrect number of arguments for pads. See also ee36db5 for similar changes.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@picnixz@vstinner