diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-11 10:14:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 10:14:24 (GMT) |
commit | 36ece2effbfbe648541d1a1b72683939f70a411a (patch) | |
tree | 3d334a6ab012621085a4805dacf9d78c330b0bf9 | |
parent | 4c881049ef1ff0e3632da13bd9353fb53b7e57b0 (diff) | |
download | cpython-36ece2effbfbe648541d1a1b72683939f70a411a.zip cpython-36ece2effbfbe648541d1a1b72683939f70a411a.tar.gz cpython-36ece2effbfbe648541d1a1b72683939f70a411a.tar.bz2 |
gh-90153: whatsnew: "z" option in format spec (GH-93624)
Add what's new entry for PEP 682 in Python 3.11.
(cherry picked from commit 010284b46b604bb07a99775a2e51475b720da030)
Co-authored-by: John Belmonte <john@neggie.net>
-rw-r--r-- | Doc/whatsnew/3.11.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index ff32b3b..33ea8bf 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -373,6 +373,9 @@ Other Language Changes the current directory, the script's directory or an empty string. (Contributed by Victor Stinner in :gh:`57684`.) +* A ``"z"`` option was added to the format specification mini-language that + coerces negative zero to zero after rounding to the format precision. See + :pep:`682` for more details. (Contributed by John Belmonte in :gh:`90153`.) Other CPython Implementation Changes ==================================== |