I'm running Python 3.7.4 and I noticed some undesireable behavior while working on something, which I then reduced to this:
>>> x = 5
>>> x -= 1 if False else print("blah")
blah
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for -=: 'int' and 'NoneType'
Unless there's something obvious I'm just missing? Why is it even trying to eval the -= if it's fallen through to the else?