gh-67790: Support float-style formatting for Fraction instances by mdickinson · Pull Request #100161 · python/cpython · GitHub

github.com

Tin mới

mdickinson:fraction-format

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Implement __format__ for Fraction #67790

Add '.f' formatting for Fraction objects

Add support for % and F format specifiers

Add support for 'z' flag

Tidy up of business logic

Add support for 'e' presentation type

Add support for 'g' presentation type; tidy

netlify Bot commented Dec 10, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.
netlify Bot commented Dec 10, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.

netlify Bot commented Dec 10, 2022 • edited Loading Uh oh! There was an error while loading. Please reload this page.

There was an error while loading. Please reload this page.

awaiting core review

Add what's new entry

Fix more missing backticks

Wordsmithing for consistency with other method definitions

Add link to the format specification mini-language

Fix: not true that thousands separators cannot have an effect for the…

Fix typo in comment

bpo-67790: Add float-style formatting for Fraction objects mdickinson/cpython#1

Merge remote-tracking branch 'upstream/main' into fraction-format

Add testcases for no presentation type with an integral fraction

Rename the regex to allow for future API expansion

Tweak algorithm comments

Fix incorrect acceptance of Z instead of z

Use consistent quote style in tests

gh-67790: Add integer-style formatting for fractions.Fraction mdickinson/cpython#2

Implement "__format__" for Fraction, following

Update python-quicktions to version 1.14 / rev 7 via SR 1073017

python/cpython#100488

python/cpython#93730

python/cpython#101780

fix: support pytest on python 3.12 wrt Fraction formatting change

fix: support pytest on python 3.12 wrt Fraction formatting change hgrecco/pint#1821