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 8626f53 commit 800e8a7Copy full SHA for 800e8a7
src/if_python.c
@@ -740,9 +740,11 @@ Python_Init(void)
740
#else
741
PyMac_Initialize();
742
#endif
743
- /* initialise threads */
+ /* Initialise threads and save the state using PyGILState_Ensure.
744
+ * Without this call, thread-specific state (such as the system trace
745
+ * hook), will be lost between invocations of Python code. */
746
PyEval_InitThreads();
-
747
+ pygilstate = PyGILState_Ensure();
748
#ifdef DYNAMIC_PYTHON
749
get_exceptions();
750
src/version.c
@@ -719,6 +719,8 @@ static char *(features[]) =
719
720
static int included_patches[] =
721
{ /* Add new patch number below this line */
722
+/**/
723
+ 691,
724
/**/
725
690,
726
0 commit comments