pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

++ and -- generate bad code inside an expression

Open snoopyjc opened this issue 3 years ago • 1 comments

++ and -- generate bad code inside an expression. For example (from the perl test suite):

tryeq $T++,  13 %  4, 1, 'modulo: positive positive';

generates this python code, which is a syntax error:

tryeq([T+=1,13%4,1,'modulo: positive positive'])

snoopyjc avatar Nov 26 '21 17:11 snoopyjc

Fixed in https://github.com/snoopyjc/pythonizer

snoopyjc avatar Feb 07 '22 16:02 snoopyjc