]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-68163: Correct conversion of Rational instances to float (GH-25619)
authorSergey B Kirpichev <skirpichev@gmail.com>
Sun, 4 Sep 2022 12:15:59 +0000 (15:15 +0300)
committerGitHub <noreply@github.com>
Sun, 4 Sep 2022 12:15:59 +0000 (13:15 +0100)
commit8464b754c4168586b99e2135ccd2567e025625a9
treed4a79892904a7d853a10ed6b6e8dae5f5f428e54
parent9b9394df5fa808f9a125e3e472e7df4c24aea5a1
gh-68163: Correct conversion of Rational instances to float (GH-25619)

* gh-68163: Correct conversion of Rational instances to float

Also document that numerator/denominator properties are instances of Integral.

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Doc/library/numbers.rst
Lib/numbers.py
Lib/test/test_numeric_tower.py
Misc/NEWS.d/next/Library/2022-09-04-12-32-52.gh-issue-68163.h6TJCc.rst [new file with mode: 0644]