forked from Rust-related/RustPython
- 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)
|