From: Guido van Rossum Date: Fri, 26 Sep 1997 21:47:43 +0000 (+0000) Subject: Release interpreter lock around readline call in [raw_]input(). X-Git-Tag: v1.5a4~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee81af89779d8ea189f23fddca1d96a4eb49751e;p=thirdparty%2FPython%2Fcpython.git Release interpreter lock around readline call in [raw_]input(). --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 15cca17913e1..f2839acbbf3d 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);