gh-101773: Optimize creation of Fractions in private methods by skirpichev · Pull Request #101780 · python/cpython · GitHub

github.com

Tin mới

skirpichev:opt-fractions-new

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

Optimize creation of unnormalized Fraction's in private methods (arithmetics, etc) #101773

: Optimize creation of Fraction's in private methods

Merge branch 'main' into opt-fractions-new

View reviewed changes

as_integer_ratio docstring's #101825

Adjust signature of _from_pair() and add docstring

Use new helper in from_float/Decimal

Restore back _normalize kwarg for the Fraction.__new__()

View reviewed changes

awaiting core review

Nitpick on docstring (int's -> ints)

Revert "Restore back _normalize kwarg for the Fraction.__new__()"

Rename: _from_pair -> _from_coprime_ints

Merge branch 'main' into opt-fractions-new

awaiting change review

View reviewed changes

Update Misc/NEWS.d/next/Library/2023-02-10-11-59-13.gh-issue-101773.J…

Tweak docstring wording

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Merge branch 'main' into inlinecomp2

Speed up the internal creation of result Fractions if the calculated …

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

python/cpython#100161

python/cpython#100488

python/cpython#93730

[NO ISSUE] Adds __eq__ support for non-normalized fractions #103959