/external/python/cpython2/Lib/json/ |
D | __init__.py | 255 object_pairs_hook=None) 259 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument 290 parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, 295 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument 338 parse_constant is None and object_pairs_hook is None and not kw): 344 if object_pairs_hook is not None: 345 kw['object_pairs_hook'] = object_pairs_hook
|
D | decoder.py | 149 object_pairs_hook, _w=WHITESPACE.match, _ws=WHITESPACE_STR): argument 163 if object_pairs_hook is not None: 164 result = object_pairs_hook(pairs) 228 if object_pairs_hook is not None: 229 result = object_pairs_hook(pairs) 304 object_pairs_hook=None): argument 349 self.object_pairs_hook = object_pairs_hook
|
D | scanner.py | 26 object_pairs_hook = context.object_pairs_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) 275 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument 296 parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) 300 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument 347 parse_constant is None and object_pairs_hook is None and not kw): 353 if object_pairs_hook is not None: 354 kw['object_pairs_hook'] = object_pairs_hook
|
D | decoder.py | 136 def JSONObject(s_and_end, strict, scan_once, object_hook, object_pairs_hook, argument 155 if object_pairs_hook is not None: 156 result = object_pairs_hook(pairs) 209 if object_pairs_hook is not None: 210 result = object_pairs_hook(pairs) 286 object_pairs_hook=None): argument 324 self.object_pairs_hook = object_pairs_hook
|
D | scanner.py | 25 object_pairs_hook = context.object_pairs_hook 38 _scan_once, object_hook, object_pairs_hook, memo)
|
/external/python/cpython2/Lib/json/tests/ |
D | test_decode.py | 36 self.assertEqual(self.loads(s, object_pairs_hook=lambda x: x), p) 38 object_pairs_hook=lambda x: x), p) 39 od = self.loads(s, object_pairs_hook=OrderedDict) 43 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict, 47 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict), 50 object_pairs_hook=OrderedDict),
|
D | test_unicode.py | 62 self.assertEqual(self.loads(s, object_pairs_hook = lambda x: x), p) 63 od = self.loads(s, object_pairs_hook = OrderedDict) 68 object_pairs_hook = OrderedDict,
|
/external/python/cpython3/Lib/test/test_json/ |
D | test_decode.py | 28 self.assertEqual(self.loads(s, object_pairs_hook=lambda x: x), p) 30 object_pairs_hook=lambda x: x), p) 31 od = self.loads(s, object_pairs_hook=OrderedDict) 35 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict, 39 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict), 42 object_pairs_hook=OrderedDict),
|
D | test_unicode.py | 87 self.assertEqual(self.loads(s, object_pairs_hook = lambda x: x), p) 88 od = self.loads(s, object_pairs_hook = OrderedDict) 92 self.assertEqual(self.loads(s, object_pairs_hook = OrderedDict,
|
/external/python/cpython2/Doc/library/ |
D | json.rst | 213 …ng[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, object_pairs_hook[, **kw]]]]]]… 231 *object_pairs_hook* is an optional function that will be called with the 233 return value of *object_pairs_hook* will be used instead of the 237 *object_hook* is also defined, the *object_pairs_hook* takes priority. 240 Added support for *object_pairs_hook*. 265 …ng[, cls[, object_hook[, parse_float[, parse_int[, parse_constant[, object_pairs_hook[, **kw]]]]]]… 282 …oding[, object_hook[, parse_float[, parse_int[, parse_constant[, strict[, object_pairs_hook]]]]]]]) 325 *object_pairs_hook*, if specified will be called with the result of every 327 *object_pairs_hook* will be used instead of the :class:`dict`. This 331 *object_hook* is also defined, the *object_pairs_hook* takes priority. [all …]
|
/external/python/cpython3/Doc/library/ |
D | json.rst | 215 …ect_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw) 227 *object_pairs_hook* is an optional function that will be called with the 229 return value of *object_pairs_hook* will be used instead of the 231 If *object_hook* is also defined, the *object_pairs_hook* takes priority. 234 Added support for *object_pairs_hook*. 268 …ect_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw) 288 …k=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None) 324 *object_pairs_hook*, if specified will be called with the result of every 326 *object_pairs_hook* will be used instead of the :class:`dict`. This 328 defined, the *object_pairs_hook* takes priority. [all …]
|
/external/python/cpython2/Lib/test/crashers/ |
D | decref_before_assignment.py | 23 object_pairs_hook = None variable in Ctx1
|
/external/python/cpython3/Modules/ |
D | _json.c | 30 PyObject *object_pairs_hook; member 40 {"object_pairs_hook", T_OBJECT, offsetof(PyScannerObject, object_pairs_hook), READONLY}, 678 Py_VISIT(s->object_pairs_hook); in scanner_traverse() 692 Py_CLEAR(s->object_pairs_hook); in scanner_clear() 716 int has_pairs_hook = (s->object_pairs_hook != Py_None); in _parse_object_unicode() 815 val = PyObject_CallFunctionObjArgs(s->object_pairs_hook, rval, NULL); in _parse_object_unicode() 1225 s->object_pairs_hook = PyObject_GetAttrString(ctx, "object_pairs_hook"); in scanner_new() 1226 if (s->object_pairs_hook == NULL) in scanner_new()
|
/external/vixl/tools/test_generator/ |
D | parser.py | 98 object_pairs_hook=collections.OrderedDict)
|
/external/protobuf/python/google/protobuf/ |
D | json_format.py | 317 js = json.loads(text, object_pairs_hook=_DuplicateChecker)
|
/external/v8/tools/ |
D | v8_presubmit.py | 500 json.loads(contents, object_pairs_hook=check_pairs)
|
/external/linux-kselftest/tools/testing/selftests/tc-testing/ |
D | tdc.py | 359 testlist = json.load(test_data, object_pairs_hook=OrderedDict)
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.1.rst | 73 an *object_pairs_hook* to allow OrderedDicts to be built by the decoder.
|
D | 2.7.rst | 299 constructor was extended with an *object_pairs_hook* parameter to 1399 now has an optional *object_pairs_hook* parameter that will be called
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7.4rc1.rst | 737 while decoding empty object literals when object_pairs_hook was specified.
|
D | 2.7a1.rst | 3533 Added object_pairs_hook to the json module. This allows OrderedDicts to be
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.7.rst | 299 constructor was extended with an *object_pairs_hook* parameter to 1384 now has an optional *object_pairs_hook* parameter that will be called
|
/external/python/cpython3/Misc/ |
D | HISTORY | 5255 a failure while decoding empty object literals when object_pairs_hook was
|