commit | 71700b8903a8ccd172ae739f53520b59fc153bca | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed May 15 17:49:05 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed May 15 17:49:05 2013 +0200 |
tree | 962e55687d43f70d0f5c4b0f226db3cb523f4d8c | |
parent | a4720019cfca02fa0c04358daa562334bb716d57 [diff] [blame] |
updated for version 7.3.956 Problem: Python vim.bindeval() causes SIGABRT. Solution: Make pygilstate a local variable. (Yukihiro Nakadaira)
diff --git a/src/if_py_both.h b/src/if_py_both.h index 4905bed..2fef1e4 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -1298,7 +1298,14 @@ } } + Py_BEGIN_ALLOW_THREADS + Python_Lock_Vim(); + error = func_call(name, &args, selfdict, &rettv); + + Python_Release_Vim(); + Py_END_ALLOW_THREADS + if (error != OK) { result = NULL;