/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 299 parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) 303 parse_int=None, parse_constant=None, object_pairs_hook=None, **kw): argument 353 parse_constant is None and object_pairs_hook is None and not kw): 359 if object_pairs_hook is not None: 360 kw['object_pairs_hook'] = object_pairs_hook
|
D | decoder.py | 135 def JSONObject(s_and_end, strict, scan_once, object_hook, object_pairs_hook, argument 154 if object_pairs_hook is not None: 155 result = object_pairs_hook(pairs) 208 if object_pairs_hook is not None: 209 result = object_pairs_hook(pairs) 285 object_pairs_hook=None): argument 326 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)
|
D | tool.py | 41 object_pairs_hook=collections.OrderedDict)
|
/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 | 218 …ect_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw) 230 *object_pairs_hook* is an optional function that will be called with the 232 return value of *object_pairs_hook* will be used instead of the 236 *object_hook* is also defined, the *object_pairs_hook* takes priority. 239 Added support for *object_pairs_hook*. 269 …ect_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw) 289 …k=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None) 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/cpython2/Lib/test/crashers/ |
D | decref_before_assignment.py | 23 object_pairs_hook = None variable in Ctx1
|
/external/python/cpython3/Modules/ |
D | _json.c | 23 PyObject *object_pairs_hook; member 33 {"object_pairs_hook", T_OBJECT, offsetof(PyScannerObject, object_pairs_hook), READONLY}, 675 Py_VISIT(s->object_pairs_hook); in scanner_traverse() 690 Py_CLEAR(s->object_pairs_hook); in scanner_clear() 714 int has_pairs_hook = (s->object_pairs_hook != Py_None); in _parse_object_unicode() 816 val = PyObject_CallFunctionObjArgs(s->object_pairs_hook, rval, NULL); in _parse_object_unicode() 1210 s->object_pairs_hook = NULL; in scanner_new() 1245 s->object_pairs_hook = PyObject_GetAttrString(ctx, "object_pairs_hook"); in scanner_init() 1246 if (s->object_pairs_hook == NULL) in scanner_init() 1263 Py_CLEAR(s->object_pairs_hook); in scanner_init()
|
/external/vixl/tools/test_generator/ |
D | parser.py | 98 object_pairs_hook=collections.OrderedDict)
|
/external/lisa/tests/lisa/ |
D | test_wlgen_rtapp.py | 77 conf = json.load(f, object_pairs_hook=OrderedDict)
|
/external/linux-kselftest/tools/testing/selftests/tc-testing/ |
D | tdc.py | 188 testlist = json.load(test_data, object_pairs_hook=OrderedDict)
|
/external/v8/tools/ |
D | presubmit.py | 480 json.loads(contents, object_pairs_hook=check_pairs)
|
/external/protobuf/python/google/protobuf/ |
D | json_format.py | 317 js = json.loads(text, object_pairs_hook=_DuplicateChecker)
|
/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/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/cpython2/Misc/ |
D | NEWS | 3352 a failure while decoding empty object literals when object_pairs_hook was 8352 - Issue #5381: Added object_pairs_hook to the json module. This allows
|
/external/python/cpython3/Misc/ |
D | HISTORY | 5255 a failure while decoding empty object literals when object_pairs_hook was
|