mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
- print exception type to screen to match cpython behaviour - included sample script to illustrate behaviour at sys.exit()
8 lines
81 B
Python
8 lines
81 B
Python
import atexit
|
|
import sys
|
|
|
|
def myexit():
|
|
sys.exit(2)
|
|
|
|
atexit.register(myexit)
|