DMOJ/judge-server

Pypy throws NameError when exit() is called.

Lucien950 opened this issue · 1 comments

Title explains all. Exit() might be used if return-like behavior is wanted outside of a function.

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.