mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Document sqlite3.Cursor.close()
The behaviour of the close method is tested by ClosedCurTests in Lib/sqlite3/test/dbapi.py. This is basically a backport of https://github.com/ghaering/pysqlite/issues/73.
This commit is contained in:
parent
557a06309c
commit
f70fe6f6cf
1 changed files with 6 additions and 0 deletions
|
@ -593,6 +593,12 @@ Cursor Objects
|
|||
the cursor's arraysize attribute can affect the performance of this operation.
|
||||
An empty list is returned when no rows are available.
|
||||
|
||||
.. method:: close()
|
||||
|
||||
Close the cursor now (rather than whenever ``__del__`` is called).
|
||||
|
||||
The cursor will be unusable from this point forward; a ``ProgrammingError``
|
||||
exception will be raised if any operation is attempted with the cursor.
|
||||
|
||||
.. attribute:: rowcount
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue