summaryrefslogtreecommitdiff
path: root/Doc/lib/sqlite3/adapter_point_2.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-15 14:27:07 +0000
committerGeorg Brandl <georg@python.org>2007-08-15 14:27:07 +0000
commit739c01d47b9118d04e5722333f0e6b4d0c8bdd9e (patch)
treef82b450d291927fc1758b96d981aa0610947b529 /Doc/lib/sqlite3/adapter_point_2.py
parent2d1649094402ef393ea2b128ba2c08c3937e6b93 (diff)
downloadcpython-git-739c01d47b9118d04e5722333f0e6b4d0c8bdd9e.tar.gz
Delete the LaTeX doc tree.
Diffstat (limited to 'Doc/lib/sqlite3/adapter_point_2.py')
-rw-r--r--Doc/lib/sqlite3/adapter_point_2.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/Doc/lib/sqlite3/adapter_point_2.py b/Doc/lib/sqlite3/adapter_point_2.py
deleted file mode 100644
index 1e1719a3cc..0000000000
--- a/Doc/lib/sqlite3/adapter_point_2.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import sqlite3
-
-class Point(object):
- def __init__(self, x, y):
- self.x, self.y = x, y
-
-def adapt_point(point):
- return "%f;%f" % (point.x, point.y)
-
-sqlite3.register_adapter(Point, adapt_point)
-
-con = sqlite3.connect(":memory:")
-cur = con.cursor()
-
-p = Point(4.0, -3.2)
-cur.execute("select ?", (p,))
-print(cur.fetchone()[0])