]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-90153: whatsnew: "z" option in format spec (GH-93624)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 11 Jun 2022 10:14:24 +0000 (03:14 -0700)
committerGitHub <noreply@github.com>
Sat, 11 Jun 2022 10:14:24 +0000 (03:14 -0700)
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>
Doc/whatsnew/3.11.rst

index ff32b3bbfc7ffa4250527e735c3930e5dbe97f38..33ea8bf794ed2404b19bf1a4b56818e9393ce4da 100644 (file)
@@ -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
 ====================================