diff Modules/_sqlite/cursor.c @ 44791:15536865198a legacy-trunk

#1509: fix sqlite3 docstrings and docs w.r.t. cursor.fetchXXX methods.
author Georg Brandl <georg@python.org>
date Sat, 19 Jan 2008 20:53:07 +0000
parents 26384b8180c7
children b7ee9074ca0e
line wrap: on
line diff
--- a/Modules/_sqlite/cursor.c	Sat Jan 19 20:49:02 2008 +0000
+++ b/Modules/_sqlite/cursor.c	Sat Jan 19 20:53:07 2008 +0000
@@ -991,11 +991,11 @@
     {"executescript", (PyCFunction)pysqlite_cursor_executescript, METH_VARARGS,
         PyDoc_STR("Executes a multiple SQL statements at once. Non-standard.")},
     {"fetchone", (PyCFunction)pysqlite_cursor_fetchone, METH_NOARGS,
+        PyDoc_STR("Fetches one row from the resultset.")},
+    {"fetchmany", (PyCFunction)pysqlite_cursor_fetchmany, METH_VARARGS,
         PyDoc_STR("Fetches several rows from the resultset.")},
-    {"fetchmany", (PyCFunction)pysqlite_cursor_fetchmany, METH_VARARGS,
+    {"fetchall", (PyCFunction)pysqlite_cursor_fetchall, METH_NOARGS,
         PyDoc_STR("Fetches all rows from the resultset.")},
-    {"fetchall", (PyCFunction)pysqlite_cursor_fetchall, METH_NOARGS,
-        PyDoc_STR("Fetches one row from the resultset.")},
     {"close", (PyCFunction)pysqlite_cursor_close, METH_NOARGS,
         PyDoc_STR("Closes the cursor.")},
     {"setinputsizes", (PyCFunction)pysqlite_noop, METH_VARARGS,