Skip to content

Commit 68010fe

Browse files
author
Erlend E. Aasland
committed
bpo-40956: fix Cursor.fetchmany() default value
1 parent c47c78b commit 68010fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Modules/_sqlite/clinic/cursor.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pysqlite_cursor_fetchone(pysqlite_Cursor *self, PyObject *Py_UNUSED(ignored))
138138
}
139139

140140
PyDoc_STRVAR(pysqlite_cursor_fetchmany__doc__,
141-
"fetchmany($self, /, size=cursor.arraysize)\n"
141+
"fetchmany($self, /, size=<unrepresentable>)\n"
142142
"--\n"
143143
"\n"
144144
"Fetches several rows from the resultset.");
@@ -256,4 +256,4 @@ pysqlite_cursor_close(pysqlite_Cursor *self, PyObject *Py_UNUSED(ignored))
256256
{
257257
return pysqlite_cursor_close_impl(self);
258258
}
259-
/*[clinic end generated code: output=11db0de4fb1951a9 input=a9049054013a1b77]*/
259+
/*[clinic end generated code: output=8b5ffd9029d33cd8 input=a9049054013a1b77]*/

Modules/_sqlite/cursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,14 +822,14 @@ pysqlite_cursor_fetchone_impl(pysqlite_Cursor *self)
822822
/*[clinic input]
823823
_sqlite3.Cursor.fetchmany as pysqlite_cursor_fetchmany
824824
825-
size as maxrows: int(c_default='self->arraysize') = cursor.arraysize
825+
size as maxrows: int(c_default='self->arraysize', py_default='<unrepresentable>') = 1
826826
827827
Fetches several rows from the resultset.
828828
[clinic start generated code]*/
829829

830830
static PyObject *
831831
pysqlite_cursor_fetchmany_impl(pysqlite_Cursor *self, int maxrows)
832-
/*[clinic end generated code: output=a8ef31fea64d0906 input=d80ff999a7701ffb]*/
832+
/*[clinic end generated code: output=a8ef31fea64d0906 input=e436f4f150e78b9b]*/
833833
{
834834
PyObject* row;
835835
PyObject* list;

0 commit comments

Comments
 (0)