Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 372 Bytes

2026-09-29-16-32-46.gh-issue-158446.dToaPr.rst

File metadata and controls

5 lines (5 loc) · 372 Bytes

Fix a crash or incorrect output that could occur when formatting a :class:`float` or :class:`complex` with a precision close to the platform's INT_MAX. :c:func:`PyOS_double_to_string` now raises :exc:`ValueError` for any precision of that magnitude, regardless of presentation type or value, as the format string parsers already did for precisions above INT_MAX.