/external/python/cpython2/Lib/json/ |
D | __init__.py | 254 _default_decoder = JSONDecoder(encoding=None, object_hook=None, 258 def load(fp, encoding=None, cls=None, object_hook=None, parse_float=None, argument 288 encoding=encoding, cls=cls, object_hook=object_hook, 294 def loads(s, encoding=None, cls=None, object_hook=None, parse_float=None, argument 336 if (cls is None and encoding is None and object_hook is None and 342 if object_hook is not None: 343 kw['object_hook'] = object_hook
|
D | decoder.py | 148 def JSONObject(s_and_end, encoding, strict, scan_once, object_hook, argument 167 if object_hook is not None: 168 pairs = object_hook(pairs) 232 if object_hook is not None: 233 pairs = object_hook(pairs) 302 def __init__(self, encoding=None, object_hook=None, parse_float=None, argument 348 self.object_hook = object_hook
|
D | scanner.py | 25 object_hook = context.object_hook 38 _scan_once, object_hook, object_pairs_hook)
|
/external/python/cpython3/Lib/json/ |
D | __init__.py | 241 _default_decoder = JSONDecoder(object_hook=None, object_pairs_hook=None) 274 def load(fp, *, cls=None, object_hook=None, parse_float=None, argument 294 cls=cls, object_hook=object_hook, 299 def loads(s, *, encoding=None, cls=None, object_hook=None, parse_float=None, argument 345 if (cls is None and object_hook is None and 351 if object_hook is not None: 352 kw['object_hook'] = object_hook
|
D | decoder.py | 136 def JSONObject(s_and_end, strict, scan_once, object_hook, object_pairs_hook, argument 159 if object_hook is not None: 160 pairs = object_hook(pairs) 213 if object_hook is not None: 214 pairs = object_hook(pairs) 284 def __init__(self, *, object_hook=None, parse_float=None, argument 319 self.object_hook = object_hook
|
D | scanner.py | 24 object_hook = context.object_hook 38 _scan_once, object_hook, object_pairs_hook, memo)
|
/external/mesa3d/src/gallium/tools/trace/ |
D | diff_state.py | 321 object_hook = strip_object_hook 323 object_hook = None 327 return json.loads(data, strict=False, object_hook = object_hook) 329 return json.load(stream, strict=False, object_hook = object_hook)
|
/external/python/cpython2/Lib/test/crashers/ |
D | decref_before_assignment.py | 22 object_hook = None variable in Ctx1
|
/external/python/cpython2/Doc/library/ |
D | json.rst | 76 ... object_hook=as_complex) 213 .. function:: load(fp[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, o… 225 *object_hook* is an optional function that will be called with the result of 227 *object_hook* will be used instead of the :class:`dict`. This feature can be used 237 *object_hook* is also defined, the *object_pairs_hook* takes priority. 265 .. function:: loads(s[, encoding[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, o… 282 .. class:: JSONDecoder([encoding[, object_hook[, parse_float[, parse_int[, parse_constant[, strict[… 320 *object_hook*, if specified, will be called with the result of every JSON 331 *object_hook* is also defined, the *object_pairs_hook* takes priority.
|
/external/python/cpython2/Modules/ |
D | _json.c | 37 PyObject *object_hook; member 47 {"object_hook", T_OBJECT, offsetof(PyScannerObject, object_hook), READONLY, "object_hook"}, 857 Py_VISIT(s->object_hook); in scanner_traverse() 873 Py_CLEAR(s->object_hook); in scanner_clear() 991 if (s->object_hook != Py_None) { in _parse_object_str() 992 val = PyObject_CallFunctionObjArgs(s->object_hook, rval, NULL); in _parse_object_str() 1118 if (s->object_hook != Py_None) { in _parse_object_unicode() 1119 val = PyObject_CallFunctionObjArgs(s->object_hook, rval, NULL); in _parse_object_unicode() 1743 s->object_hook = PyObject_GetAttrString(ctx, "object_hook"); in scanner_new() 1744 if (s->object_hook == NULL) in scanner_new()
|
/external/python/cpython3/Modules/ |
D | _json.c | 29 PyObject *object_hook; member 39 {"object_hook", T_OBJECT, offsetof(PyScannerObject, object_hook), READONLY, "object_hook"}, 677 Py_VISIT(s->object_hook); in scanner_traverse() 691 Py_CLEAR(s->object_hook); in scanner_clear() 821 if (s->object_hook != Py_None) { in _parse_object_unicode() 822 val = PyObject_CallFunctionObjArgs(s->object_hook, rval, NULL); in _parse_object_unicode() 1222 s->object_hook = PyObject_GetAttrString(ctx, "object_hook"); in scanner_new() 1223 if (s->object_hook == NULL) in scanner_new()
|
/external/python/cpython3/Doc/library/ |
D | json.rst | 79 ... object_hook=as_complex) 215 .. function:: load(fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_const… 221 *object_hook* is an optional function that will be called with the result of 223 *object_hook* will be used instead of the :class:`dict`. This feature can be used 231 If *object_hook* is also defined, the *object_pairs_hook* takes priority. 268 .. function:: loads(s, *, encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=No… 288 .. class:: JSONDecoder(*, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, … 319 *object_hook*, if specified, will be called with the result of every JSON 327 feature can be used to implement custom decoders. If *object_hook* is also
|
/external/python/cpython2/Lib/json/tests/ |
D | test_decode.py | 44 object_hook=lambda x: None),
|
D | test_unicode.py | 69 object_hook = lambda x: None),
|
/external/python/cpython3/Lib/test/test_json/ |
D | test_unicode.py | 93 object_hook = lambda x: None),
|
D | test_decode.py | 36 object_hook=lambda x: None),
|
/external/autotest/client/cros/enterprise/ |
D | enterprise_policy_base.py | 1082 object_hook=_decode_dict)
|
/external/autotest/client/cros/power/ |
D | power_status.py | 1574 object_hook=to_checkpoint_data)
|