faulthandler

python: Is there a downside to using faulthandler?

青春壹個敷衍的年華 提交于 2021-02-04 10:39:20
问题 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? 回答1: This feature is very useful. Is there any particular reason