snoopyjc / pythonizer

Automatic translator from Perl to Python
https://snoopyjc.org/pythonizer/
Artistic License 2.0
12 stars 1 forks source link

Initializing a %hash with a qw(...) causes it to be an array #349

Closed snoopyjc closed 1 year ago

snoopyjc commented 1 year ago

Initializing a %hash with a qw(...) causes it to be an array. For example (from Date::Manip::Lang):

%Lang = qw(
        catalan     catalan
        ca          catalan

        danish      danish
        da          danish

        dutch       dutch
        nederlands  dutch
        nl          dutch

        english     english
        en          english
        en_us       english

        finnish     finnish
        fi          finnish
        fi_fi       finnish

        french      french
        fr          french
        fr_fr       french

        german      german
        de          german
        de_de       german

        italian     italian
        it          italian
        it_it       italian

        norwegian   norwegian
        nb          norwegian
        nb_no       norwegian

        polish      polish
        pl          polish
        pl_pl       polish

        portuguese  portugue
        pt          portugue
        pt_pt       portugue

        romanian    romanian
        ro          romanian
        ro_ro       romanian

        russian     russian
        ru          russian
        ru_ru       russian

        spanish     spanish
        es          spanish
        es_es       spanish

        swedish     swedish
        sv          swedish

        turkish     turkish
        tr          turkish
        tr_tr       turkish
     ); 
snoopyjc commented 1 year ago

Fixed in v1.030