Home
last modified time | relevance | path

Searched refs:object_pairs_hook (Results 1 – 25 of 25) sorted by relevance

/external/python/cpython2/Lib/json/
D__init__.py255 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
Ddecoder.py149 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
Dscanner.py26 object_pairs_hook = context.object_pairs_hook
38 _scan_once, object_hook, object_pairs_hook)
/external/python/cpython3/Lib/json/
D__init__.py241 _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
Ddecoder.py135 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
Dscanner.py25 object_pairs_hook = context.object_pairs_hook
38 _scan_once, object_hook, object_pairs_hook, memo)
Dtool.py41 object_pairs_hook=collections.OrderedDict)
/external/python/cpython2/Lib/json/tests/
Dtest_decode.py36 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),
Dtest_unicode.py62 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/
Dtest_decode.py28 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),
Dtest_unicode.py87 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/
Djson.rst213 …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/
Djson.rst218 …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/
Ddecref_before_assignment.py23 object_pairs_hook = None variable in Ctx1
/external/python/cpython3/Modules/
D_json.c23 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/
Dparser.py98 object_pairs_hook=collections.OrderedDict)
/external/lisa/tests/lisa/
Dtest_wlgen_rtapp.py77 conf = json.load(f, object_pairs_hook=OrderedDict)
/external/linux-kselftest/tools/testing/selftests/tc-testing/
Dtdc.py188 testlist = json.load(test_data, object_pairs_hook=OrderedDict)
/external/v8/tools/
Dpresubmit.py480 json.loads(contents, object_pairs_hook=check_pairs)
/external/protobuf/python/google/protobuf/
Djson_format.py317 js = json.loads(text, object_pairs_hook=_DuplicateChecker)
/external/python/cpython3/Doc/whatsnew/
D3.1.rst73 an *object_pairs_hook* to allow OrderedDicts to be built by the decoder.
D2.7.rst299 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/
D2.7.rst299 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/
DNEWS3352 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/
DHISTORY5255 a failure while decoding empty object literals when object_pairs_hook was