diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2016-03-18 18:11:30 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2016-03-18 18:11:30 (GMT) |
commit | 6840632ef2aec4210ab456900c3bd96aef4579d8 (patch) | |
tree | 182006092d9b746eae858e580fc96e804fa85f83 /Doc | |
parent | 32cba67b9f727117ad56e70c5c799d9eae5498aa (diff) | |
parent | 62564dbb4b4a882d4702111ba43bb5b204945a62 (diff) | |
download | cpython-6840632ef2aec4210ab456900c3bd96aef4579d8.zip cpython-6840632ef2aec4210ab456900c3bd96aef4579d8.tar.gz cpython-6840632ef2aec4210ab456900c3bd96aef4579d8.tar.bz2 |
#26250: merge with 3.5.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sqlite3.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index b14ea72..aee444b 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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 |