]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-72902: improve Fraction constructor speed for typical inputs (GH-134320)
authorSergey B Kirpichev <skirpichev@gmail.com>
Tue, 20 May 2025 09:47:27 +0000 (12:47 +0300)
committerGitHub <noreply@github.com>
Tue, 20 May 2025 09:47:27 +0000 (12:47 +0300)
commit175ba3639fbc336912f429cf4de43b22e05fd6dc
treea309533f8f08c6eb6b607c069b271546206cba0d
parente007e62ba7403575611145aa2e39900b5f4bc6bd
gh-72902: improve Fraction constructor speed for typical inputs (GH-134320)

This moves abc check for numbers.Rational - down.
Lib/fractions.py
Misc/NEWS.d/next/Library/2025-05-20-11-35-08.gh-issue-72902.jzEI-E.rst [new file with mode: 0644]