SIGN IN SIGN UP

bpo-45995: add "z" format specifer to coerce negative 0 to zero (GH-30049)

Add "z" format specifier to coerce negative 0 to zero.

See https://github.com/python/cpython/issues/90153 (originally https://bugs.python.org/issue45995) for discussion.
This covers `str.format()` and f-strings.  Old-style string interpolation is not supported.

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
J
John Belmonte committed
b0b836b20cb56c225874a4a39ef895f89ab2970f
Parent: dd207a6
Committed by GitHub <noreply@github.com> on 4/11/2022, 2:34:18 PM