Back to index

python3.2  3.2.2
Classes | Functions | Variables
adapter_point_2 Namespace Reference

Classes

class  Point

Functions

def adapt_point

Variables

tuple con = sqlite3.connect(":memory:")
tuple cur = con.cursor()
tuple p = Point(4.0, -3.2)

Function Documentation

def adapter_point_2.adapt_point (   point)

Definition at line 7 of file adapter_point_2.py.

00007 
00008 def adapt_point(point):
00009     return "%f;%f" % (point.x, point.y)
00010 
00011 sqlite3.register_adapter(Point, adapt_point)


Variable Documentation

tuple adapter_point_2.con = sqlite3.connect(":memory:")

Definition at line 12 of file adapter_point_2.py.

tuple adapter_point_2.cur = con.cursor()

Definition at line 13 of file adapter_point_2.py.

tuple adapter_point_2.p = Point(4.0, -3.2)

Definition at line 15 of file adapter_point_2.py.