softpano/pythonizer

A return statement with a || expression generates bad code

Opened this issue · 1 comments

A return statement with a || expression generates bad code. For example:

sub IS_A_NUMBER {
   return ($_[0] =~ /^(\+|-)?([0-9]|\.)+$/) || 0 ;
}