0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.691

Problem:    State specific to the Python thread is discarded.
Solution:   Keep state between threads. (Paul)
This commit is contained in:
Bram Moolenaar
2012-10-14 05:20:12 +02:00
parent dac7569612
commit b88adbf844
2 changed files with 6 additions and 2 deletions

View File

@@ -740,9 +740,11 @@ Python_Init(void)
#else #else
PyMac_Initialize(); PyMac_Initialize();
#endif #endif
/* initialise threads */ /* 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. */
PyEval_InitThreads(); PyEval_InitThreads();
pygilstate = PyGILState_Ensure();
#ifdef DYNAMIC_PYTHON #ifdef DYNAMIC_PYTHON
get_exceptions(); get_exceptions();
#endif #endif

View File

@@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
691,
/**/ /**/
690, 690,
/**/ /**/