diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-06-12 21:37:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-06-12 21:37:13 +0200 |
commit | 456f2bb24f269a1f1ceb5ddedfb828ca33fc270b (patch) | |
tree | 719e2e4d94ccdbd2fb439dc68ea03f59c18f6205 /src/if_python3.c | |
parent | 03227eeb797dcc7cdd90672b67b8daff61943f21 (diff) | |
download | vim-git-456f2bb24f269a1f1ceb5ddedfb828ca33fc270b.tar.gz |
updated for version 7.3.212v7.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)
Diffstat (limited to 'src/if_python3.c')
-rw-r--r-- | src/if_python3.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/if_python3.c b/src/if_python3.c index 91d3f65c1..1121802b5 100644 --- a/src/if_python3.c +++ b/src/if_python3.c @@ -547,14 +547,13 @@ Python3_Init(void) 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(); |