]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-67790: Support basic formatting for Fraction (#111320)
authorMark Dickinson <dickinsm@gmail.com>
Sat, 16 Dec 2023 10:58:31 +0000 (10:58 +0000)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 10:58:31 +0000 (10:58 +0000)
commitfe479fb8a979894224a4d279d1e46a5cdb108fa4
tree1803622717168923dd287e1b94322abe32fe071a
parent84df3172efe8767ddf5c28bdb6696b3f216bcaa6
gh-67790: Support basic formatting for Fraction (#111320)

PR #100161 added fancy float-style formatting for the Fraction type,
but left us in a state where basic formatting for fractions (alignment,
fill, minimum width, thousands separators) still wasn't supported.

This PR adds that support.

---------

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/fractions.rst
Doc/whatsnew/3.13.rst
Lib/fractions.py
Lib/test/test_fractions.py
Misc/NEWS.d/next/Library/2023-10-25-13-07-53.gh-issue-67790.jMn9Ad.rst [new file with mode: 0644]