There was an error while loading. Please reload this page.
1 parent f47da0f commit 4951a11Copy full SHA for 4951a11
1 file changed
Doc/library/curses.rst
@@ -31,6 +31,18 @@ Linux and the BSD variants of Unix.
31
Whenever the documentation mentions a *character string* it can be specified
32
as a Unicode string or a byte string.
33
34
+.. note::
35
+
36
+ Whether curses may be used from several threads
37
+ depends on the underlying library and how it was built.
38
+ In many implementations, including the default build of ncurses,
39
+ the screen state is shared and not thread-safe;
40
+ since the blocking and refresh methods
41
+ (such as :meth:`~window.getch` and :meth:`~window.refresh`)
42
+ release the :term:`GIL`,
43
+ unsynchronized use from several threads can then crash the interpreter.
44
+ Serialize the calls.
45
46
.. seealso::
47
48
Module :mod:`curses.ascii`
0 commit comments