diff options
author | Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com> | 2025-01-08 07:35:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-08 07:35:43 (GMT) |
commit | 15372d0112ac7fbbbe313725dd87d5a45af2f6d3 (patch) | |
tree | 2a9d93af85eef5844e13db53bd8847a3067d3ffe /Doc/library | |
parent | 65ae3d5a73ca3c53a0c6b601dddb8e9b3b6e3f51 (diff) | |
download | cpython-15372d0112ac7fbbbe313725dd87d5a45af2f6d3.zip cpython-15372d0112ac7fbbbe313725dd87d5a45af2f6d3.tar.gz cpython-15372d0112ac7fbbbe313725dd87d5a45af2f6d3.tar.bz2 |
gh-87506: Document that json.load*() can raise UnicodeDecodeError (#127355)
Co-authored-by: Erlend Aasland <erlend@python.org>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/json.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst index cf516cf..41a09b4 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -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. |