Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(17165)

Delta Between Two Patch Sets: Lib/json/__init__.py

Issue 19361: Specialize exceptions thrown by JSON parser
Left Patch Set: Created 4 years, 11 months ago
Right Patch Set: Created 4 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/json/decoder.py ('k') | Lib/test/test_json/__init__.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of
2 JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data 2 JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
3 interchange format. 3 interchange format.
4 4
5 :mod:`json` exposes an API familiar to users of the standard library 5 :mod:`json` exposes an API familiar to users of the standard library
6 :mod:`marshal` and :mod:`pickle` modules. It is derived from a 6 :mod:`marshal` and :mod:`pickle` modules. It is derived from a
7 version of the externally maintained simplejson library. 7 version of the externally maintained simplejson library.
8 8
9 Encoding basic Python object hierarchies:: 9 Encoding basic Python object hierarchies::
10 10
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 kw['object_hook'] = object_hook 323 kw['object_hook'] = object_hook
324 if object_pairs_hook is not None: 324 if object_pairs_hook is not None:
325 kw['object_pairs_hook'] = object_pairs_hook 325 kw['object_pairs_hook'] = object_pairs_hook
326 if parse_float is not None: 326 if parse_float is not None:
327 kw['parse_float'] = parse_float 327 kw['parse_float'] = parse_float
328 if parse_int is not None: 328 if parse_int is not None:
329 kw['parse_int'] = parse_int 329 kw['parse_int'] = parse_int
330 if parse_constant is not None: 330 if parse_constant is not None:
331 kw['parse_constant'] = parse_constant 331 kw['parse_constant'] = parse_constant
332 return cls(**kw).decode(s) 332 return cls(**kw).decode(s)
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+