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
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 7.4 KB
README.rst -rw-r--r-- 4.5 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.3 KB
conf.py -rw-r--r-- 6.4 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 52.0 KB
license.rst -rw-r--r-- 43.4 KB
make.bat -rw-r--r-- 5.5 KB

README.rst

back to top