[issue29469] AST-level Constant folding
Serhiy Storchaka
report at bugs.python.org
Thu Dec 14 12:19:46 EST 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
PR 4866 also fixes the bug in optimizing chained 'i' and 'not in'.
For example `1 in [1, 2] == [1, 2]` results in False (should be True) because it is changed to `1 in (1, 2) == [1, 2]`, and (1, 2) != [1, 2].
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29469>
_______________________________________
More information about the Python-bugs-list
mailing list