Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ef5ce884
Commit
ef5ce884
authored
Apr 06, 2018
by
Jay Crotts
Committed by
Ned Deily
Apr 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179)
parent
9e2be606
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
Doc/library/curses.rst
Doc/library/curses.rst
+12
-0
Misc/NEWS.d/next/Documentation/2018-01-13-20-30-53.bpo-8243.s98r28.rst
...ext/Documentation/2018-01-13-20-30-53.bpo-8243.s98r28.rst
+2
-0
No files found.
Doc/library/curses.rst
View file @
ef5ce884
...
...
@@ -685,6 +685,12 @@ the following methods and attributes:
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])
...
...
@@ -700,6 +706,12 @@ the following methods and attributes:
Paint the character 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)
...
...
Misc/NEWS.d/next/Documentation/2018-01-13-20-30-53.bpo-8243.s98r28.rst
0 → 100644
View file @
ef5ce884
Add a note about curses.addch and curses.addstr exception behavior when
writing outside a window, or pad.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment