From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 11 Jun 2022 10:14:24 +0000 (-0700) Subject: gh-90153: whatsnew: "z" option in format spec (GH-93624) X-Git-Tag: v3.11.0b4~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36ece2effbfbe648541d1a1b72683939f70a411a;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. (cherry picked from commit 010284b46b604bb07a99775a2e51475b720da030) Co-authored-by: John Belmonte --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index ff32b3bbfc7f..33ea8bf794ed 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 ====================================