Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 9054:dabb2b6a3a81 legacy-trunk
Don't release the interpreter lock around PyParser_ParseFile().
It is needed so that tokenizer.c can use PySys_WriteStderr().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 27 Aug 1998 19:14:49 +0000 |
| parents | 070de4d39ddd |
| children | 1e43df7d8be3 |
line wrap: on
line diff
--- a/Python/pythonrun.c Thu Aug 27 19:02:51 1998 +0000 +++ b/Python/pythonrun.c Thu Aug 27 19:14:49 1998 +0000 @@ -500,10 +500,8 @@ else if (PyString_Check(w)) ps2 = PyString_AsString(w); } - Py_BEGIN_ALLOW_THREADS n = PyParser_ParseFile(fp, filename, &_PyParser_Grammar, Py_single_input, ps1, ps2, &err); - Py_END_ALLOW_THREADS Py_XDECREF(v); Py_XDECREF(w); if (n == NULL) { @@ -942,10 +940,8 @@ { node *n; perrdetail err; - Py_BEGIN_ALLOW_THREADS n = PyParser_ParseFile(fp, filename, &_PyParser_Grammar, start, (char *)0, (char *)0, &err); - Py_END_ALLOW_THREADS if (n == NULL) err_input(&err); return n;
