summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-27 18:51:22 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-27 18:51:22 (GMT)
commitb61b0f13b5b88f500d3be053a5e25fc167fd6ebd (patch)
tree5e0972f9cf5732631888f21b860bfee7dd79011a /Doc
parent622583e9bf19b79b621eba8c5798acdf175a17d2 (diff)
parentf70fe6f6cfde596264ed6fdd626b8c2964443f3e (diff)
downloadcpython-b61b0f13b5b88f500d3be053a5e25fc167fd6ebd.zip
cpython-b61b0f13b5b88f500d3be053a5e25fc167fd6ebd.tar.gz
cpython-b61b0f13b5b88f500d3be053a5e25fc167fd6ebd.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sqlite3.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index c5a5e81..4890fc5 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -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