mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
gh-87506: Document that json.load*() can raise UnicodeDecodeError (#127355)
Co-authored-by: Erlend Aasland <erlend@python.org>
This commit is contained in:
parent
65ae3d5a73
commit
15372d0112
1 changed files with 4 additions and 0 deletions
|
@ -324,6 +324,10 @@ Basic Usage
|
|||
:raises JSONDecodeError:
|
||||
When the data being deserialized is not a valid JSON document.
|
||||
|
||||
:raises UnicodeDecodeError:
|
||||
When the data being deserialized does not contain
|
||||
UTF-8, UTF-16 or UTF-32 encoded data.
|
||||
|
||||
.. versionchanged:: 3.1
|
||||
|
||||
* Added the optional *object_pairs_hook* parameter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue