Mercurial > vim
diff src/if_py_both.h @ 13952:76a65058766f v8.0.1846
patch 8.0.1846: Python interface is incompatible with lldb
commit https://github.com/vim/vim/commit/d4a8c98ef6b294d605c5f93309509a944dc97a79
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 15 22:31:18 2018 +0200
patch 8.0.1846: Python interface is incompatible with lldb
Problem: Python interface is incompatible with lldb.
Solution: For OutputType set the base to be PyFile_Type. (Boxu Zhang)
Partly disabled to avoid a crash.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 15 May 2018 22:45:05 +0200 |
parents | 8412df1479a3 |
children | 30a0068f6167 |
line wrap: on
line diff
--- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -6333,9 +6333,12 @@ init_structs(void) OutputType.tp_alloc = call_PyType_GenericAlloc; OutputType.tp_new = call_PyType_GenericNew; OutputType.tp_free = call_PyObject_Free; + OutputType.tp_base = &PyStdPrinter_Type; #else OutputType.tp_getattr = (getattrfunc)OutputGetattr; OutputType.tp_setattr = (setattrfunc)OutputSetattr; + // Disabled, because this causes a crash in test86 + // OutputType.tp_base = &PyFile_Type; #endif vim_memset(&IterType, 0, sizeof(IterType));