#26250: document the sqlite3.Cursor.connection attribute. Initial patches by Aviv Palivoda and Varpu Rantala.

This commit is contained in:
Ezio Melotti 2016-03-18 20:10:36 +02:00
parent e4044bfe63
commit 62564dbb4b
2 changed files with 13 additions and 0 deletions

View File

@ -627,6 +627,18 @@ Cursor Objects
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:
Row Objects

View File

@ -1173,6 +1173,7 @@ Burton Radons
Abhilash Raj
Shorya Raj
Jeff Ramnani
Varpu Rantala
Brodie Rao
Senko Rasic
Antti Rasinen