0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.3.996

Problem:    Python: Can't check types of what is returned by bindeval().
Solution:   Add vim.List, vim.Dictionary and vim.Function types. (ZyX)
This commit is contained in:
Bram Moolenaar
2013-05-21 19:50:34 +02:00
parent 1dc28783fa
commit cac867ad18
7 changed files with 90 additions and 12 deletions

View File

@@ -4245,6 +4245,15 @@ static struct object_constant {
{"windows", (PyObject *)(void *)&TheWindowList},
{"tabpages", (PyObject *)(void *)&TheTabPageList},
{"current", (PyObject *)(void *)&TheCurrent},
{"Buffer", (PyObject *)&BufferType},
{"Range", (PyObject *)&RangeType},
{"Window", (PyObject *)&WindowType},
{"TabPage", (PyObject *)&TabPageType},
{"Dictionary", (PyObject *)&DictionaryType},
{"List", (PyObject *)&ListType},
{"Function", (PyObject *)&FunctionType},
{"Options", (PyObject *)&OptionsType},
};
typedef int (*object_adder)(PyObject *, const char *, PyObject *);