Open snoopyjc opened 2 years ago
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
Statement with both a bash-style "and" and a trailing "if" generates wrong code. For example:
generates:
but the correct code is: