diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-04-16 20:15:39 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-04-16 20:15:39 (GMT) |
commit | 16b83b1f6672e73a7079bb6655354e506ebb1af2 (patch) | |
tree | 849b6ee50a6342423a4b8a64003581a02f068789 | |
parent | ccff2bbd3b3e5376333792b629029ebb69a903d6 (diff) | |
download | cpython-16b83b1f6672e73a7079bb6655354e506ebb1af2.zip cpython-16b83b1f6672e73a7079bb6655354e506ebb1af2.tar.gz cpython-16b83b1f6672e73a7079bb6655354e506ebb1af2.tar.bz2 |
Issue #24173: Fix curses.wrapper link in curses HOWTO
-rw-r--r-- | Doc/howto/curses.rst | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst index 74c1f2a..74f0da5 100644 --- a/Doc/howto/curses.rst +++ b/Doc/howto/curses.rst @@ -122,13 +122,12 @@ raises an uncaught exception. Keys are no longer echoed to the screen when 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 |