Searched refs:dict_factory (Results 1 – 5 of 5) sorted by relevance
/third_party/python/Doc/includes/sqlite3/ |
D | row_factory.py | 3 def dict_factory(cursor, row): function 10 con.row_factory = dict_factory
|
/third_party/python/Lib/ |
D | dataclasses.py | 1218 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/ |
D | factory.py | 31 def dict_factory(cursor, row): function 40 self.row_factory = dict_factory
|
/third_party/python/Lib/test/ |
D | test_dataclasses.py | 1496 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/ |
D | dataclasses.rst | 322 .. function:: asdict(obj, *, dict_factory=dict) 325 factory function ``dict_factory``). Each dataclass is converted
|