Home
last modified time | relevance | path

Searched refs:object_pairs_hook (Results 1 – 24 of 24) 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
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
Ddecoder.py136 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
Dscanner.py25 object_pairs_hook = context.object_pairs_hook
38 _scan_once, object_hook, object_pairs_hook, memo)
/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.rst215 …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/
Ddecref_before_assignment.py23 object_pairs_hook = None variable in Ctx1
/external/python/cpython3/Modules/
D_json.c30 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/
Dparser.py98 object_pairs_hook=collections.OrderedDict)
/external/protobuf/python/google/protobuf/
Djson_format.py317 js = json.loads(text, object_pairs_hook=_DuplicateChecker)
/external/v8/tools/
Dv8_presubmit.py500 json.loads(contents, object_pairs_hook=check_pairs)
/external/linux-kselftest/tools/testing/selftests/tc-testing/
Dtdc.py359 testlist = json.load(test_data, object_pairs_hook=OrderedDict)
/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/Misc/NEWS.d/
D2.7.4rc1.rst737 while decoding empty object literals when object_pairs_hook was specified.
D2.7a1.rst3533 Added object_pairs_hook to the json module. This allows OrderedDicts to be
/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/cpython3/Misc/
DHISTORY5255 a failure while decoding empty object literals when object_pairs_hook was