New submission from Alexander Marshalov: Missed peephole optimization: 1 > 2 -> False 3 < 4 -> True 5 == 6 -> False 6 != 7 -> True 7 >= 8 -> False 8 <= 9 -> True 10 is 11 -> False 12 is not 13 -> True 14 in (15, 16, 17) -> False 18 not in (19, 20, 21) -> True
---------- components: Interpreter Core files: peephole_compareops.patch keywords: patch messages: 263089 nosy: amper priority: normal severity: normal status: open title: Fold compare operators on constants (peephole) type: enhancement versions: Python 3.6 Added file: http://bugs.python.org/file42414/peephole_compareops.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26722> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com