Pypy throws NameError when exit() is called.
Lucien950 opened this issue · 1 comments
Lucien950 commented
Title explains all. Exit() might be used if return-like behavior is wanted outside of a function.
quantum5 commented
exit
is not a part of Python, but rather injected by the site
module for interactive use. We do not allow the use of site
on the judge for various reasons that I will not get into here. However, you should do the standard way of sys.exit
, which definitely works.