Commit 62564dbb authored by Ezio Melotti's avatar Ezio Melotti

#26250: document the sqlite3.Cursor.connection attribute. Initial patches by...

#26250: document the sqlite3.Cursor.connection attribute.  Initial patches by Aviv Palivoda and Varpu Rantala.
parent e4044bfe
...@@ -627,6 +627,18 @@ Cursor Objects ...@@ -627,6 +627,18 @@ Cursor Objects
It is set for ``SELECT`` statements without any matching rows as well. It is set for ``SELECT`` statements without any matching rows as well.
.. attribute:: connection
This read-only attribute provides the SQLite database :class:`Connection`
used by the :class:`Cursor` object. A :class:`Cursor` object created by
calling :meth:`con.cursor() <Connection.cursor>` will have a
:attr:`connection` attribute that refers to *con*::
>>> con = sqlite3.connect(":memory:")
>>> cur = con.cursor()
>>> cur.connection == con
True
.. _sqlite3-row-objects: .. _sqlite3-row-objects:
Row Objects Row Objects
......
...@@ -1173,6 +1173,7 @@ Burton Radons ...@@ -1173,6 +1173,7 @@ Burton Radons
Abhilash Raj Abhilash Raj
Shorya Raj Shorya Raj
Jeff Ramnani Jeff Ramnani
Varpu Rantala
Brodie Rao Brodie Rao
Senko Rasic Senko Rasic
Antti Rasinen Antti Rasinen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment