softpano/pythonizer

Regex with local sub call generates bad code

snoopyjc opened this issue · 1 comments

Regex with local sub call generates bad code. For example:

next if exists $cl{$k} and strip($fac) =~ /^OC/;

Generates:

if k in cl and strip([fac])re.search(r'^OC',: