Commit 77f0a41d authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by Ned Deily

[2.7] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179) (GH-6405)

(cherry picked from commit ef5ce884)
Co-authored-by: default avatarJay Crotts <crotts.jay@gmail.com>
parent 325191bd
......@@ -663,6 +663,12 @@ the following methods:
character previously painter at that location. By default, the character
position and attributes are the current settings for the window object.
.. note::
Writing outside the window, subwindow, or pad raises a :exc:`curses.error`.
Attempting to write to the lower right corner of a window, subwindow,
or pad will cause an exception to be raised after the character is printed.
.. method:: window.addnstr(str, n[, attr])
window.addnstr(y, x, str, n[, attr])
......@@ -677,6 +683,12 @@ the following methods:
Paint the string *str* at ``(y, x)`` with attributes *attr*, overwriting
anything previously on the display.
.. note::
Writing outside the window, subwindow, or pad raises :exc:`curses.error`.
Attempting to write to the lower right corner of a window, subwindow,
or pad will cause an exception to be raised after the string is printed.
.. method:: window.attroff(attr)
......
Add a note about curses.addch and curses.addstr exception behavior when
writing outside a window, or pad.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment