diff options
author | Victor Stinner <vstinner@python.org> | 2020-01-16 10:02:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 10:02:51 (GMT) |
commit | 4691a2f2a2b8174a6c958ce6976ed5f3354c9504 (patch) | |
tree | 2d39ff21b819f1da2940d94b574190e89a9cf079 /Doc/library/fractions.rst | |
parent | 210c19e3c5b86535a73487fa737752de8eb1d866 (diff) | |
download | cpython-4691a2f2a2b8174a6c958ce6976ed5f3354c9504.zip cpython-4691a2f2a2b8174a6c958ce6976ed5f3354c9504.tar.gz cpython-4691a2f2a2b8174a6c958ce6976ed5f3354c9504.tar.bz2 |
bpo-39350: Remove deprecated fractions.gcd() (GH-18021)
Remove fractions.gcd() function, deprecated since Python 3.5
(bpo-22486): use math.gcd() instead.
Diffstat (limited to 'Doc/library/fractions.rst')
-rw-r--r-- | Doc/library/fractions.rst | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Doc/library/fractions.rst b/Doc/library/fractions.rst index 58e7126..d3a4276 100644 --- a/Doc/library/fractions.rst +++ b/Doc/library/fractions.rst @@ -172,18 +172,6 @@ another rational number, or from a string. method can also be accessed through the :func:`round` function. -.. function:: gcd(a, b) - - Return the greatest common divisor of the integers *a* and *b*. If either - *a* or *b* is nonzero, then the absolute value of ``gcd(a, b)`` is the - largest integer that divides both *a* and *b*. ``gcd(a,b)`` has the same - sign as *b* if *b* is nonzero; otherwise it takes the sign of *a*. ``gcd(0, - 0)`` returns ``0``. - - .. deprecated:: 3.5 - Use :func:`math.gcd` instead. - - .. seealso:: Module :mod:`numbers` |