Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-93476: Fraction.limit_denominator speed increase#93477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Closed
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
drop comment for now. can be separate PR
  • Loading branch information
@mscuthbert
mscuthbert committedJun 5, 2022
commitf5daa21f4b96195771e01d420b16e7b5abf1a439
7 changes: 0 additions & 7 deletionsLib/fractions.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -90,13 +90,6 @@ def __new__(cls, numerator=0, denominator=None, *, _normalize=True):
Fraction(147, 100)

"""
# private _normalize=False should only be set if the Fraction is
# already asserted to be normalized.
# (see discussion: at https://github.com/python/cpython/pull/93477)
# if a non-normalized Fraction is passed in with _normalize=False
# then API calls may give inconsistent results on equivalent
# Fraction objects.

self = super(Fraction, cls).__new__(cls)

if denominator is None:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp