Staging
v0.5.1
https://github.com/python/cpython
Revision 705d271d553b77fd170d27ab8d0f11f638c7f145 authored by Miss Islington (bot) on 06 February 2020, 15:14:37 UTC, committed by GitHub on 06 February 2020, 15:14:37 UTC

Some numerator types used (specifically NumPy) decides to not
return a Python boolean for the "a != b" operation. Using the equivalent
call to bool() guarantees a bool return also for such types.
(cherry picked from commit 427c84f13f7719e6014a21bd1b81efdc02a046fb)

Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
1 parent 6ba8dc6
History
Tip revision: 705d271d553b77fd170d27ab8d0f11f638c7f145 authored by Miss Islington (bot) on 06 February 2020, 15:14:37 UTC
bpo-39274: Ensure Fraction.__bool__() returns a bool (GH-18017)
Tip revision: 705d271

README

back to top