]> 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 b14ea722ffa287833bdaa1a1bd810548deb47f74..aee444b1388be5d2a2703b4836f88cf879a78931 100644 (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
index 3f70eef71c0ef19ab0d6acdf74cc5344019d1e3a..3a9cd6f53b4b1c6bc6a58fb2335bbadf7baa460b 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1173,6 +1173,7 @@ Burton Radons
 Abhilash Raj
 Shorya Raj
 Jeff Ramnani
+Varpu Rantala
 Brodie Rao
 Senko Rasic
 Antti Rasinen