summaryrefslogtreecommitdiffstats
path: root/Doc/library/sqlite3.rst
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-02-15 20:22:34 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-02-15 20:22:34 (GMT)
commitbe2cf338e9baef1f2479a33a8c7b5552bf9bd86f (patch)
treead5bfa3bbfe0db0e65b25eb5ef805fbf0e0b226b /Doc/library/sqlite3.rst
parent482ee66cb7075b917a0a93051536ed0c10586447 (diff)
parent1ca93954e17e4f6f1230306997badbda3e5c68bc (diff)
downloadcpython-be2cf338e9baef1f2479a33a8c7b5552bf9bd86f.zip
cpython-be2cf338e9baef1f2479a33a8c7b5552bf9bd86f.tar.gz
cpython-be2cf338e9baef1f2479a33a8c7b5552bf9bd86f.tar.bz2
Merge branch '3.2'
Issue #13491.
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r--Doc/library/sqlite3.rst8
1 files changed, 2 insertions, 6 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 6fd239e..2eb4614 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -484,14 +484,10 @@ Cursor Objects
kinds of placeholders: question marks (qmark style) and named placeholders
(named style).
- This example shows how to use parameters with qmark style:
+ Here's an example of both styles:
.. literalinclude:: ../includes/sqlite3/execute_1.py
- This example shows how to use the named style:
-
- .. literalinclude:: ../includes/sqlite3/execute_2.py
-
:meth:`execute` will only execute a single SQL statement. If you try to execute
more than one statement with it, it will raise a Warning. Use
:meth:`executescript` if you want to execute multiple SQL statements with one
@@ -773,7 +769,7 @@ and constructs a :class:`Point` object from it.
::
def convert_point(s):
- x, y = map(float, s.split(";"))
+ x, y = map(float, s.split(b";"))
return Point(x, y)
Now you need to make the :mod:`sqlite3` module know that what you select from