faulthandler
faulthandler — Dump the Python traceback
New in version 3.3.
This module contains functions to dump Python tracebacks explicitly, on a fault, after a timeout, or on a user signal. Call faulthandler.enable()
to install fault handlers for the SIGSEGV
, SIGFPE
, SIGABRT
, SIGBUS
, and SIGILL
signals. You can also enable them at startup by setting the PYTHONFAULTHANDLER
environment variable or by using the 登录查看完整内容