pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

No code is generated for pattern match in spite of side effects

Open snoopyjc opened this issue 3 years ago • 1 comments

No code is generated for pattern match in spite of side effects. For example:

"976562500000000" =~ /(\d+)/;

is an expression and generates no code. Instead it needs to run the pattern match which sets $1 to the matching pattern.

snoopyjc avatar Nov 26 '21 17:11 snoopyjc

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

snoopyjc avatar Feb 07 '22 16:02 snoopyjc