aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-09 20:56:57 +0100
committerGitHub <noreply@github.com>2020-03-09 20:56:57 +0100
commit3225b9f9739cd4bcca372d0fa939cea1ae5c6402 (patch)
tree008faa6d058d9f9e449bf2113287aa5e30c8a35f /Include/ceval.h
parentbpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release ... (diff)
downloadcpython-3225b9f9739cd4bcca372d0fa939cea1ae5c6402.tar.gz
cpython-3225b9f9739cd4bcca372d0fa939cea1ae5c6402.tar.bz2
cpython-3225b9f9739cd4bcca372d0fa939cea1ae5c6402.zip
bpo-39877: Remove useless PyEval_InitThreads() calls (GH-18883)
Py_Initialize() calls PyEval_InitThreads() since Python 3.7. It's no longer needed to call it explicitly.
Diffstat (limited to 'Include/ceval.h')
-rw-r--r--Include/ceval.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index 62c6489ed1c..e977fcb43dd 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -121,9 +121,6 @@ PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(struct _frame *f, int exc);
WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND
Py_END_ALLOW_THREADS!!!
- The function PyEval_InitThreads() should be called only from
- init_thread() in "_threadmodule.c".
-
Note that not yet all candidates have been converted to use this
mechanism!
*/