MCPcopy Index your code
hub / github.com/python/cpython / dict_factory

Function dict_factory

Lib/test/test_sqlite3/test_factory.py:31–35  ·  view source on GitHub ↗
(cursor, row)

Source from the content-addressed store, hash-verified

29
30
31def dict_factory(cursor, row):
32 d = {}
33 for idx, col in enumerate(cursor.description):
34 d[col[0]] = row[idx]
35 return d
36
37class MyCursor(sqlite.Cursor):
38 def __init__(self, *args, **kwargs):

Callers 1

_asdict_innerFunction · 0.85

Calls 1

enumerateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…