[issue35733] isinstance(ast.Constant(value=True), ast.Num) should be False

Karthikeyan Singaravelan report at bugs.python.org
Mon Jan 14 01:24:58 EST 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Added Serhiy since this seems to have been caused due to issue32892 and changes made in 6015cc50bc


➜  cpython git:(6015cc50bc) ./python.exe -c 'import ast; print(isinstance(ast.Constant(False), ast.Num))'
True
➜  cpython git:(6015cc50bc) git checkout 6015cc5~1
➜  cpython git:(913876d824) make > /dev/null
➜  cpython git:(913876d824) ./python.exe -c 'import ast; print(isinstance(ast.Constant(False), ast.Num))'
False

----------
nosy: +xtreak

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35733>
_______________________________________


More information about the Python-bugs-list mailing list