Request for review: gh-113804: Support formatting floats in hexadecimal notation

I would like to ask for review the gh-113804: Support formatting floats in hexadecimal notation by skirpichev · Pull Request #113805 · python/cpython · GitHub, pinging here per the devguide. The pr adds support for formatting floats (in str.format(), f-strings and old string formatting) in float.hex()-style.

N.b., accompanying pr: gh-114667: Support hexadecimal floating point literals by skirpichev · Pull Request #114668 · python/cpython · GitHub. In the discussion thread it was noted, that this part may require a PEP. Thus, it’s implemented separately. Presented here because people, probably, would like (or not) both features (as in other languages).

Issue: Support formatting floats in hexadecimal (and binary?) notation · Issue #113804 · python/cpython · GitHub
Previous discussion thread: Support hexadecimal floating-point literals

1 Like