Skip to content

Commit 5eef99f

Browse files
committed
add NEWS entry
1 parent a21b820 commit 5eef99f

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:class:`curses.window`: Consistently report failures of curses C API calls
2+
in :class:`~curses.window` methods by raising a :exc:`curses.error`. This
3+
affects :meth:`~curses.window.addch`, :meth:`~curses.window.addnstr`,
4+
:meth:`~curses.window.addstr`, :meth:`~curses.window.border`,
5+
:meth:`~curses.window.box`, :meth:`~curses.window.chgat`,
6+
:meth:`~curses.window.getbkgd`, :meth:`~curses.window.inch`,
7+
:meth:`~curses.window.insstr` and :meth:`~curses.window.insnstr`.
8+
Patch by Bénédikt Tran.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:meth:`curses.window.refresh` and :meth:`curses.window.noutrefresh` now raise
2+
a :exc:`TypeError` instead of :exc:`curses.error` when called with an incorrect
3+
number of arguments for :ref:`pad <windows-and-pads>`. Patch by Bénédikt Tran.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:mod:`curses`: Consistently report failures of curses C API calls in
2+
module-level methods by raising a :exc:`curses.error`. This affects
3+
:func:`~curses.assume_default_colors`, :func:`~curses.baudrate`,
4+
:func:`~curses.cbreak`, :func:`~curses.echo`, :func:`~curses.longname`,
5+
:func:`~curses.initscr`, :func:`~curses.nl`, :func:`~curses.raw`,
6+
:func:`~curses.termattrs`, :func:`~curses.termname` and :func:`~curses.unctrl`.
7+
Patch by Bénédikt Tran.

0 commit comments

Comments
 (0)