summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-26 21:47:43 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-26 21:47:43 (GMT)
commitee81af89779d8ea189f23fddca1d96a4eb49751e (patch)
tree4cb5866c712c8606c5e82bbe885998c692385565 /Python
parent5edcf34fac3368cfa671b2fd9e1df2c1f47b4f2c (diff)
downloadcpython-ee81af89779d8ea189f23fddca1d96a4eb49751e.zip
cpython-ee81af89779d8ea189f23fddca1d96a4eb49751e.tar.gz
cpython-ee81af89779d8ea189f23fddca1d96a4eb49751e.tar.bz2
Release interpreter lock around readline call in [raw_]input().
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 15cca17..f2839ac 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1349,7 +1349,9 @@ builtin_raw_input(self, args)
po = NULL;
prompt = "";
}
+ Py_BEGIN_ALLOW_THREADS
s = PyOS_Readline(prompt);
+ Py_END_ALLOW_THREADS
Py_XDECREF(po);
if (s == NULL) {
PyErr_SetNone(PyExc_KeyboardInterrupt);