Back to index

python3.2  3.2.2
Functions | Variables
row_factory Namespace Reference

Functions

def dict_factory

Variables

tuple con = sqlite3.connect(":memory:")
tuple cur = con.cursor()

Function Documentation

def row_factory.dict_factory (   cursor,
  row 
)

Definition at line 3 of file row_factory.py.

00003 
00004 def dict_factory(cursor, row):
00005     d = {}
00006     for idx, col in enumerate(cursor.description):
00007         d[col[0]] = row[idx]
00008     return d

Here is the call graph for this function:


Variable Documentation

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

Definition at line 9 of file row_factory.py.

tuple row_factory.cur = con.cursor()

Definition at line 11 of file row_factory.py.