/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/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/Modules/ |
D | _json.c | 37 PyObject *object_hook; member 47 {"object_hook", T_OBJECT, offsetof(PyScannerObject, object_hook), READONLY, "object_hook"}, 860 Py_VISIT(s->object_hook); in scanner_traverse() 876 Py_CLEAR(s->object_hook); in scanner_clear() 994 if (s->object_hook != Py_None) { in _parse_object_str() 995 val = PyObject_CallFunctionObjArgs(s->object_hook, rval, NULL); in _parse_object_str() 1121 if (s->object_hook != Py_None) { in _parse_object_unicode() 1122 val = PyObject_CallFunctionObjArgs(s->object_hook, rval, NULL); in _parse_object_unicode() 1714 s->object_hook = NULL; in scanner_new() 1763 s->object_hook = PyObject_GetAttrString(ctx, "object_hook"); in scanner_init() [all …]
|
/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/Lib/json/tests/ |
D | test_decode.py | 44 object_hook=lambda x: None),
|
D | test_unicode.py | 69 object_hook = lambda x: None),
|
/external/autotest/client/cros/enterprise/ |
D | enterprise_policy_base.py | 494 object_hook=_decode_dict)
|