updated for version 7.3.698
Problem: Python 3 does not preserve state beween commands.
Solution: Preserve the state. (Paul Ollis)
diff --git a/src/if_python.c b/src/if_python.c
index 2a53c93..5e792b1 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -740,9 +740,10 @@
#else
PyMac_Initialize();
#endif
- /* Initialise threads and save the state using PyGILState_Ensure.
- * Without this call, thread-specific state (such as the system trace
- * hook), will be lost between invocations of Python code. */
+ /* Initialise threads, and save the state using PyGILState_Ensure.
+ * Without the call to PyGILState_Ensure, thread specific state (such
+ * as the system trace hook), will be lost between invocations of
+ * Python code. */
PyEval_InitThreads();
pygilstate = PyGILState_Ensure();
#ifdef DYNAMIC_PYTHON