Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue29469> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com