Open snoopyjc opened 2 years ago
Complex hash RHS values produces syntax error in the generated code. For example:
my %hop = ( "AClli" => $AClli, "ZClli" => $ZClli, "ID" => $circuitRow[$colNames{"ID"}], "mileage" => $circuitRow[$colNames{"mileage"}], "type" => $circuitRow[$colNames{"type"}] );
produces:
hop = {'AClli': AClli, 'ZClli': ZClli, 'ID': circuitRow[colNames['ID']]:'mileage': circuitRow[colNames['mileage']], 'type': circuitRow[colNames['type']]}
Note the : before mileage instead of a ,.
:
mileage
,
Fixed in https://github.com/snoopyjc/pythonizer
Complex hash RHS values produces syntax error in the generated code. For example:
produces:
Note the
:
beforemileage
instead of a,
.