diff options
author | FrantiĊĦek Nesveda <fnesveda@users.noreply.github.com> | 2022-12-20 10:54:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 10:54:56 (GMT) |
commit | d98ca8172c39326bb200308a5191ceeb4a262d53 (patch) | |
tree | 0577a1fab0e3b12981cd70e22d3724199bea01dc /Misc | |
parent | a6331b605e8044a205a113e1db87d2b0a53d0222 (diff) | |
download | cpython-d98ca8172c39326bb200308a5191ceeb4a262d53.zip cpython-d98ca8172c39326bb200308a5191ceeb4a262d53.tar.gz cpython-d98ca8172c39326bb200308a5191ceeb4a262d53.tar.bz2 |
gh-99925: Fix inconsistency in `json.dumps()` error messages (GH-99926)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-12-01-15-44-58.gh-issue-99925.x4y6pF.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-12-01-15-44-58.gh-issue-99925.x4y6pF.rst b/Misc/NEWS.d/next/Library/2022-12-01-15-44-58.gh-issue-99925.x4y6pF.rst new file mode 100644 index 0000000..660635a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-12-01-15-44-58.gh-issue-99925.x4y6pF.rst @@ -0,0 +1,4 @@ +Unify error messages in JSON serialization between +``json.dumps(float('nan'), allow_nan=False)`` and ``json.dumps(float('nan'), +allow_nan=False, indent=<SOMETHING>)``. Now both include the representation +of the value that could not be serialized. |