Skip to content

Commit 36ece2e

Browse files
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 010284b) Co-authored-by: John Belmonte <[email protected]>
1 parent 4c88104 commit 36ece2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/whatsnew/3.11.rst

+3
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ Other Language Changes
373373
the current directory, the script's directory or an empty string.
374374
(Contributed by Victor Stinner in :gh:`57684`.)
375375

376+
* A ``"z"`` option was added to the format specification mini-language that
377+
coerces negative zero to zero after rounding to the format precision. See
378+
:pep:`682` for more details. (Contributed by John Belmonte in :gh:`90153`.)
376379

377380
Other CPython Implementation Changes
378381
====================================

0 commit comments

Comments
 (0)