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

perl eval block should generate a try block #42

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

perl eval block should generate a try block instead of a syntax error. Catch any exception and set the message in $@ else clear that special variable. Change die to raise an exception instead of calling sys.exit().

snoopyjc commented 2 years ago

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