diff options
author | Georg Brandl <georg@python.org> | 2007-10-21 12:10:28 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-21 12:10:28 (GMT) |
commit | e7a0990113873e5f0cc5cac203f47a8dcbda9848 (patch) | |
tree | a19f8f84973bb222ee9564617004c926f41e6100 /Doc/library/sqlite3.rst | |
parent | cf3fb259329eedfa9d2c802b2ea5ced287c21e78 (diff) | |
download | cpython-e7a0990113873e5f0cc5cac203f47a8dcbda9848.zip cpython-e7a0990113873e5f0cc5cac203f47a8dcbda9848.tar.gz cpython-e7a0990113873e5f0cc5cac203f47a8dcbda9848.tar.bz2 |
Add :term:s for iterator.
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r-- | Doc/library/sqlite3.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 35f3f38..029b8ba 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -71,10 +71,10 @@ may use a different placeholder, such as ``%s`` or ``:1``.) For example:: ): c.execute('insert into stocks values (?,?,?,?,?)', t) -To retrieve data after executing a SELECT statement, you can either treat the -cursor as an iterator, call the cursor's :meth:`fetchone` method to retrieve a -single matching row, or call :meth:`fetchall` to get a list of the matching -rows. +To retrieve data after executing a SELECT statement, you can either treat the +cursor as an :term:`iterator`, call the cursor's :meth:`fetchone` method to +retrieve a single matching row, or call :meth:`fetchall` to get a list of the +matching rows. This example uses the iterator form:: @@ -410,9 +410,9 @@ A :class:`Cursor` instance has the following attributes and methods: .. method:: Cursor.executemany(sql, seq_of_parameters) - Executes a SQL command against all parameter sequences or mappings found in the - sequence *sql*. The :mod:`sqlite3` module also allows using an iterator yielding - parameters instead of a sequence. + Executes a SQL command against all parameter sequences or mappings found in + the sequence *sql*. The :mod:`sqlite3` module also allows using an + :term:`iterator` yielding parameters instead of a sequence. .. literalinclude:: ../includes/sqlite3/executemany_1.py |