From: John Belmonte Date: Sat, 11 Jun 2022 09:58:49 +0000 (+0900) Subject: gh-90153: whatsnew: "z" option in format spec (GH-93624) X-Git-Tag: v3.12.0a1~1297 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=010284b46b604bb07a99775a2e51475b720da030;p=thirdparty%2FPython%2Fcpython.git gh-90153: whatsnew: "z" option in format spec (GH-93624) Add what's new entry for PEP 682 in Python 3.11. --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 75eb0f567280..8075a726f61f 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 ====================================