[Python-checkins] gh-90153: whatsnew: "z" option in format spec (GH-93624)

miss-islington webhook-mailer at python.org
Sat Jun 11 06:14:30 EDT 2022


https://github.com/python/cpython/commit/36ece2effbfbe648541d1a1b72683939f70a411a
commit: 36ece2effbfbe648541d1a1b72683939f70a411a
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-06-11T03:14:24-07:00
summary:

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 at neggie.net>

files:
M Doc/whatsnew/3.11.rst

diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index ff32b3bbfc7ff..33ea8bf794ed2 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
 ====================================



More information about the Python-checkins mailing list