[Python-checkins] cpython (2.7): Issue #24173: Fix curses.wrapper link in curses HOWTO
berker.peksag
python-checkins at python.org
Sat Apr 16 16:14:26 EDT 2016
https://hg.python.org/cpython/rev/5c9cda2bdfd2
changeset: 101019:5c9cda2bdfd2
branch: 2.7
user: Berker Peksag <berker.peksag at gmail.com>
date: Sat Apr 16 23:15:39 2016 +0300
summary:
Issue #24173: Fix curses.wrapper link in curses HOWTO
files:
Doc/howto/curses.rst | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst
--- a/Doc/howto/curses.rst
+++ b/Doc/howto/curses.rst
@@ -122,13 +122,12 @@
you type them, for example, which makes using the shell difficult.
In Python you can avoid these complications and make debugging much easier by
-importing the module :mod:`curses.wrapper`. It supplies a :func:`wrapper`
-function that takes a callable. It does the initializations described above,
-and also initializes colors if color support is present. It then runs your
-provided callable and finally deinitializes appropriately. The callable is
-called inside a try-catch clause which catches exceptions, performs curses
-deinitialization, and then passes the exception upwards. Thus, your terminal
-won't be left in a funny state on exception.
+importing the :func:`curses.wrapper` function. It takes a callable and does
+the initializations described above, also initializing colors if color support
+is present. It then runs your provided callable and finally deinitializes
+appropriately. The callable is called inside a try-catch clause which catches
+exceptions, performs curses deinitialization, and then passes the exception
+upwards. Thus, your terminal won't be left in a funny state on exception.
Windows and Pads
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list