Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-39350: Remove deprecated fractions.gcd() #18021

Merged
merged 1 commit into from Jan 16, 2020

Conversation

@vstinner
Copy link
Member

vstinner commented Jan 16, 2020

Remove fractions.gcd() function, deprecated since Python 3.5
(bpo-22486): use math.gcd() instead.

https://bugs.python.org/issue39350

@@ -13,28 +13,6 @@
__all__ = ['Fraction', 'gcd']

This comment has been minimized.

Copy link
@serhiy-storchaka

serhiy-storchaka Jan 16, 2020

Member
Suggested change
__all__ = ['Fraction', 'gcd']
__all__ = ['Fraction']

This comment has been minimized.

Copy link
@vstinner

vstinner Jan 16, 2020

Author Member

Oops, good catch! fixed. I also rebased my PR to fix a conflict.

@vstinner vstinner force-pushed the vstinner:remove_fractions_gcd branch from 25abe4a to 20709b8 Jan 16, 2020
Remove fractions.gcd() function, deprecated since Python 3.5
(bpo-22486): use math.gcd() instead.
@vstinner vstinner force-pushed the vstinner:remove_fractions_gcd branch from 20709b8 to 657d67c Jan 16, 2020
@vstinner vstinner merged commit 4691a2f into python:master Jan 16, 2020
9 checks passed
9 checks passed
Docs
Details
Windows (x86)
Details
Windows (x64)
Details
macOS
Details
Ubuntu
Details
Azure Pipelines PR #20200116.10 succeeded
Details
bedevere/issue-number Issue number 39350 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vstinner vstinner deleted the vstinner:remove_fractions_gcd branch Jan 16, 2020
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
Remove fractions.gcd() function, deprecated since Python 3.5
(bpo-22486): use math.gcd() instead.
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
Remove fractions.gcd() function, deprecated since Python 3.5
(bpo-22486): use math.gcd() instead.
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
Remove fractions.gcd() function, deprecated since Python 3.5
(bpo-22486): use math.gcd() instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.