]> granicus.if.org Git - python/commitdiff
#26250: document the sqlite3.Cursor.connection attribute. Initial patches by Aviv...
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 18 Mar 2016 18:10:36 +0000 (20:10 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 18 Mar 2016 18:10:36 +0000 (20:10 +0200)
Doc/library/sqlite3.rst
Misc/ACKS

index ff634c0b965413255ff80d9f56363f9462f14448..a840bb674b141b83c2d750943bd0a674af6f2f17 100644 (file)
@@ -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
index d2a8e33e2839b2f4ecfa6924df4592a4bb81e768..70b92e70d8882fc4b48588151cd6166d816486bd 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1115,6 +1115,7 @@ Ram Rachum
 Jérôme Radix
 Burton Radons
 Jeff Ramnani
+Varpu Rantala
 Brodie Rao
 Senko Rasic
 Antti Rasinen