]> granicus.if.org Git - python/commit
Fix calling order of PyEval_InitThreads. (GH-15836)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Sep 2019 14:37:56 +0000 (07:37 -0700)
committerBenjamin Peterson <benjamin@python.org>
Tue, 10 Sep 2019 14:37:56 +0000 (15:37 +0100)
commit21dacea6ad1c49e1cafbe8bac803ddc22a534274
tree1046cb750d1f70a5697de5fe985a43876a45afc1
parented99bb9ca68b37cfaec3629afa67d70289f3ffc7
Fix calling order of PyEval_InitThreads. (GH-15836)

As described in Doc/c-api/init.rst, PyEval_InitThreads() cannot be called
before Py_Initialize() function.
(cherry picked from commit 9e61066355b4b55c873d56f5f106a22463b56862)

Co-authored-by: Kenta Murata <mrkn@users.noreply.github.com>
Modules/_ctypes/callbacks.c