Python 3.3 includes a module named faulthandler
that displays helpful traceback information if a segfault occurs. (For Python versions prior to 3.3, the module can be obtained from PyPI.)
The module is not enabled by default. It is enabled like this:
import faulthandler
faulthandler.enable()
This feature is very useful. Is there any particular reason it isn't enabled by default? Does it have any negative effects on performance?
faulthandler
. Note that you can enable the module via command-line options if you want to. – Hedley