[issue39274] Conversion from fractions.Fraction to bool
STINNER Victor
report at bugs.python.org
Wed Jan 15 16:40:05 EST 2020
STINNER Victor <vstinner at python.org> added the comment:
Does someone want to propose a PR to modify fractions.Fraction.__bool__() to use "return bool(a._numerator)"?
----------
keywords: +newcomer friendly
versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39274>
_______________________________________
More information about the Python-bugs-list
mailing list