Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fccac2e commit 9e29625Copy full SHA for 9e29625
1 file changed
Python/pystate.c
@@ -264,7 +264,7 @@ PyThreadState_Swap(PyThreadState *new)
264
to be used for a thread. Check this the best we can in debug
265
builds.
266
*/
267
-#if defined(Py_DEBUG)
+#if defined(Py_DEBUG) && defined(WITH_THREAD)
268
if (new) {
269
PyThreadState *check = PyGILState_GetThisThreadState();
270
if (check && check != new)
0 commit comments