0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.422

Problem:    Python 3 does not have __members__.
Solution:   Add "name" and "number" in another way. (lilydjwg)
This commit is contained in:
Bram Moolenaar
2012-02-04 20:17:26 +01:00
parent 3c70f33440
commit 7f85d297dc
3 changed files with 13 additions and 2 deletions

View File

@@ -1479,6 +1479,9 @@ static struct PyMethodDef BufferMethods[] = {
{"append", BufferAppend, 1, "Append data to Vim buffer" },
{"mark", BufferMark, 1, "Return (row,col) representing position of named mark" },
{"range", BufferRange, 1, "Return a range object which represents the part of the given buffer between line numbers s and e" },
#if PY_VERSION_HEX >= 0x03000000
{"__dir__", BufferDir, 4, "List its attributes" },
#endif
{ NULL, NULL, 0, NULL }
};