Browse Source
This patch implements a new sys.atexit function which registers a function that is later executed when the main script ends. It is configurable via MICROPY_PY_SYS_ATEXIT, disabled by default. This is not compliant with CPython, rather it can be used to implement a CPython compatible "atexit" module if desired (similar to how sys.print_exception can be used to implement functionality of the "traceback" module).pull/4994/merge
Milan Rossa
5 years ago
committed by
Damien George
4 changed files with 27 additions and 0 deletions
Loading…
Reference in new issue