Mercurial > vim
diff src/if_python3.c @ 2877:6bbdb9c7a425 v7.3.212
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 12 Jun 2011 21:37:13 +0200 |
parents | 0b4a515b1254 |
children | fe9c7da98b5e |
line wrap: on
line diff
--- 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();