pythonizer
pythonizer copied to clipboard
Statement with both a bash-style "and" and a trailing "if" generates wrong code
Statement with both a bash-style "and" and a trailing "if" generates wrong code. For example:
go_outside() and play() unless $is_raining;
generates:
if go_outside():
if not (is_raining):
play()
but the correct code is:
if not (is_raining):
if go_outside():
play()
Fixed in https://github.com/snoopyjc/pythonizer v0.951