comparison src/if_py_both.h @ 3310:60f6df978a41 v7.3.422

updated for version 7.3.422 Problem: Python 3 does not have __members__. Solution: Add "name" and "number" in another way. (lilydjwg)
author Bram Moolenaar <bram@vim.org>
date Sat, 04 Feb 2012 20:17:26 +0100
parents 2665b456ee59
children e34c620007be
comparison
equal deleted inserted replaced
3309:d3cf98aa1619 3310:60f6df978a41
1477 static struct PyMethodDef BufferMethods[] = { 1477 static struct PyMethodDef BufferMethods[] = {
1478 /* name, function, calling, documentation */ 1478 /* name, function, calling, documentation */
1479 {"append", BufferAppend, 1, "Append data to Vim buffer" }, 1479 {"append", BufferAppend, 1, "Append data to Vim buffer" },
1480 {"mark", BufferMark, 1, "Return (row,col) representing position of named mark" }, 1480 {"mark", BufferMark, 1, "Return (row,col) representing position of named mark" },
1481 {"range", BufferRange, 1, "Return a range object which represents the part of the given buffer between line numbers s and e" }, 1481 {"range", BufferRange, 1, "Return a range object which represents the part of the given buffer between line numbers s and e" },
1482 #if PY_VERSION_HEX >= 0x03000000
1483 {"__dir__", BufferDir, 4, "List its attributes" },
1484 #endif
1482 { NULL, NULL, 0, NULL } 1485 { NULL, NULL, 0, NULL }
1483 }; 1486 };
1484 1487
1485 static PyObject * 1488 static PyObject *
1486 RangeAppend(PyObject *self, PyObject *args) 1489 RangeAppend(PyObject *self, PyObject *args)