Staging
v0.5.0
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
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.6 KB
.gitignore -rw-r--r-- 1.5 KB
.travis.yml -rw-r--r-- 6.1 KB
CODE_OF_CONDUCT.rst -rw-r--r-- 631 bytes
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 62.9 KB
README.rst -rw-r--r-- 9.6 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 491.3 KB
configure.ac -rw-r--r-- 164.2 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 42.2 KB
setup.py -rw-r--r-- 101.3 KB

README.rst

back to top