Python Tricks: Python 3.3+ has a new “faulthandler” std lib module

# Python 3.3+ has a std
# lib module for displaying
# tracebacks even when Python
# "dies", e.g with a segfault:

import faulthandler
faulthandler.enable()

# Can also be enabled with
# "python -X faulthandler"
# from the command line.

# Learn more here:
# https://docs.python.org/3/library/faulthandler.html

Leave a Reply

Your email address will not be published. Required fields are marked *