updated for version 7.3.212
Problem: With Python 3.2 ":py3" fails.
Solution: Move PyEval_InitThreads() to after Py_Initialize(). (Roland
Puntaier) Check abiflags in configure. (Andreas Behr)
diff --git a/src/if_python3.c b/src/if_python3.c
index 91d3f65..1121802 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -547,14 +547,13 @@
Py_SetPythonHome(PYTHON3_HOME);
#endif
- /* initialise threads */
- PyEval_InitThreads();
-
#if !defined(MACOS) || defined(MACOS_X_UNIX)
Py_Initialize();
#else
PyMac_Initialize();
#endif
+ /* initialise threads, must be after Py_Initialize() */
+ PyEval_InitThreads();
#ifdef DYNAMIC_PYTHON3
get_py3_exceptions();