Kaydet (Commit) 3a4bdb63 authored tarafından 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.
üst 9cb2074f
......@@ -595,6 +595,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
......
......@@ -1115,6 +1115,7 @@ Ram Rachum
Jérôme Radix
Burton Radons
Jeff Ramnani
Varpu Rantala
Brodie Rao
Senko Rasic
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