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

Chained hash or mixed inits don't generate proper code #115

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

Chained hash or mixed inits don't generate proper code, for example:

%peer = %ckt = %fac = ();

It works only if you use arrays. Mixed ones don't work either:

($k, $v) = %h1 = %h2 = @a1 = @a2 = ('key', 'value');
snoopyjc commented 2 years ago

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