Searched refs:dict_factory (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython3/Doc/includes/sqlite3/ |
D | row_factory.py | 3 def dict_factory(cursor, row): function 10 con.row_factory = dict_factory
|
/external/python/cpython2/Doc/includes/sqlite3/ |
D | row_factory.py | 3 def dict_factory(cursor, row): function 10 con.row_factory = dict_factory
|
/external/python/cpython3/Lib/ |
D | dataclasses.py | 1023 def asdict(obj, *, dict_factory=dict): argument 1044 return _asdict_inner(obj, dict_factory) 1047 def _asdict_inner(obj, dict_factory): argument 1051 value = _asdict_inner(getattr(obj, f.name), dict_factory) 1053 return dict_factory(result) 1074 return type(obj)(*[_asdict_inner(v, dict_factory) for v in obj]) 1079 return type(obj)(_asdict_inner(v, dict_factory) for v in obj) 1081 return type(obj)((_asdict_inner(k, dict_factory), 1082 _asdict_inner(v, dict_factory))
|
/external/python/cpython2/Lib/sqlite3/test/ |
D | factory.py | 32 def dict_factory(cursor, row): function 41 self.row_factory = dict_factory
|
/external/python/cpython3/Lib/sqlite3/test/ |
D | factory.py | 32 def dict_factory(cursor, row): function 41 self.row_factory = dict_factory
|
/external/python/cpython3/Lib/test/ |
D | test_dataclasses.py | 1424 d = asdict(c, dict_factory=OrderedDict) 1426 self.assertIsNot(d, asdict(c, dict_factory=OrderedDict)) 1428 d = asdict(c, dict_factory=OrderedDict) 1452 d = asdict(c, dict_factory=OrderedDict)
|
/external/python/cpython3/Doc/library/ |
D | dataclasses.rst | 288 .. function:: asdict(instance, *, dict_factory=dict) 291 factory function ``dict_factory``). Each dataclass is converted
|