Home
last modified time | relevance | path

Searched refs:dict_factory (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Doc/includes/sqlite3/
Drow_factory.py3 def dict_factory(cursor, row): function
10 con.row_factory = dict_factory
/third_party/python/Lib/
Ddataclasses.py1218 def asdict(obj, *, dict_factory=dict): argument
1239 return _asdict_inner(obj, dict_factory)
1242 def _asdict_inner(obj, dict_factory): argument
1246 value = _asdict_inner(getattr(obj, f.name), dict_factory)
1248 return dict_factory(result)
1269 return type(obj)(*[_asdict_inner(v, dict_factory) for v in obj])
1274 return type(obj)(_asdict_inner(v, dict_factory) for v in obj)
1276 return type(obj)((_asdict_inner(k, dict_factory),
1277 _asdict_inner(v, dict_factory))
/third_party/python/Lib/sqlite3/test/
Dfactory.py31 def dict_factory(cursor, row): function
40 self.row_factory = dict_factory
/third_party/python/Lib/test/
Dtest_dataclasses.py1496 d = asdict(c, dict_factory=OrderedDict)
1498 self.assertIsNot(d, asdict(c, dict_factory=OrderedDict))
1500 d = asdict(c, dict_factory=OrderedDict)
1524 d = asdict(c, dict_factory=OrderedDict)
/third_party/python/Doc/library/
Ddataclasses.rst322 .. function:: asdict(obj, *, dict_factory=dict)
325 factory function ``dict_factory``). Each dataclass is converted