[issue39274] Conversion from fractions.Fraction to bool
Mark Dickinson
report at bugs.python.org
Thu Jan 9 08:14:20 EST 2020
Mark Dickinson <dickinsm at gmail.com> added the comment:
Agreed that __bool__ should return an actual bool.
``return bool(a._numerator)`` does seem like the obvious way to do this.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39274>
_______________________________________
More information about the Python-bugs-list
mailing list