]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-68163: Correct conversion of Rational instances to float (GH-25619) (GH-96557)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 4 Sep 2022 12:40:24 +0000 (05:40 -0700)
committerGitHub <noreply@github.com>
Sun, 4 Sep 2022 12:40:24 +0000 (13:40 +0100)
commit4dea99f18eeef15a6d69236146793c801d12c329
treefee9a451fbe9576f0611e3bf1afee004c70ce5ae
parent3a56a938f375f17f39baeb4b1529793dd0eb79b8
gh-68163: Correct conversion of Rational instances to float (GH-25619) (GH-96557)

* 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>
(cherry picked from commit 8464b754c4168586b99e2135ccd2567e025625a9)

Co-authored-by: Sergey B Kirpichev <skirpichev@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]