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

Code generated for open assume "use autodie;" #71

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

The code generated for open calls sys.exit() on any exception raised by open. Perl semantics are that open silently fails if it can't open the file. These semantics should be preserved in the generated code.

snoopyjc commented 2 years ago

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