Skip to content
Snippets Groups Projects
Unverified Commit b0b836b2 authored by John Belmonte's avatar John Belmonte Committed by GitHub
Browse files

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: default avatarMark Dickinson <dickinsm@gmail.com>
parent dd207a6a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment