diff options
author | Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 2023-01-01 08:44:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 08:44:48 (GMT) |
commit | e83f88a455261ed53530a960f1514ab7af7d2e82 (patch) | |
tree | 6808b9d24a7483d4afb9c7df262470b2a06e7618 /Doc | |
parent | 71159a8e078bda0c9a39c6cd0980b7ba238dc582 (diff) | |
download | cpython-e83f88a455261ed53530a960f1514ab7af7d2e82.zip cpython-e83f88a455261ed53530a960f1514ab7af7d2e82.tar.gz cpython-e83f88a455261ed53530a960f1514ab7af7d2e82.tar.bz2 |
gh-100488: Add is_integer method to fractions.Fraction (#100489)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/fractions.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/fractions.rst b/Doc/library/fractions.rst index c46d88b..dc9d5fc 100644 --- a/Doc/library/fractions.rst +++ b/Doc/library/fractions.rst @@ -117,6 +117,12 @@ another rational number, or from a string. .. versionadded:: 3.8 + .. method:: is_integer() + + Return ``True`` if the Fraction is an integer. + + .. versionadded:: 3.12 + .. classmethod:: from_float(flt) Alternative constructor which only accepts instances of |