[New-bugs-announce] [issue26722] Fold compare operators on constants (peephole)

Alexander Marshalov report at bugs.python.org
Sat Apr 9 08:52:24 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26722>
_______________________________________


More information about the New-bugs-announce mailing list