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.
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 48137f1..247fc9a 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -6333,9 +6333,12 @@
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));