softpano / pythonizer

Translator (or more correctly transcriber) from Perl to Python
http://www.softpanorama.org/Scripting/Pythonorama/Python_for_perl_programmers/Pythonizer/index.shtml
Other
39 stars 17 forks source link

State variables are not interpolated into strings #129

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

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 commented 2 years ago

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