pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

State variables are not interpolated into strings

Open snoopyjc opened this issue 3 years ago • 1 comments

State variables are not interpolated into strings. For example:

sub banner {
    state $inv = 'inv';
    state $from_fstring = "${inv}x";
    ...
}

$inv is renamed to banner_inv, but that name isn't put into the f-string for the reference.

snoopyjc avatar Feb 26 '22 16:02 snoopyjc

Fixed in my v0.959: https://github.com/snoopyjc/pythonizer/

snoopyjc avatar Mar 31 '22 22:03 snoopyjc