mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Close #18957: The PYTHONFAULTHANDLER environment variable now only enables the
faulthandler module if the variable is non-empty. Same behaviour than other variables like PYTHONDONTWRITEBYTECODE.
This commit is contained in:
parent
9437d7a7fe
commit
8898350076
4 changed files with 42 additions and 16 deletions
|
@ -511,9 +511,9 @@ conflict.
|
|||
|
||||
.. envvar:: PYTHONDONTWRITEBYTECODE
|
||||
|
||||
If this is set, Python won't try to write ``.pyc`` or ``.pyo`` files on the
|
||||
import of source modules. This is equivalent to specifying the :option:`-B`
|
||||
option.
|
||||
If this is set to a non-empty string, Python won't try to write ``.pyc`` or
|
||||
``.pyo`` files on the import of source modules. This is equivalent to
|
||||
specifying the :option:`-B` option.
|
||||
|
||||
|
||||
.. envvar:: PYTHONHASHSEED
|
||||
|
@ -582,11 +582,11 @@ conflict.
|
|||
|
||||
.. envvar:: PYTHONFAULTHANDLER
|
||||
|
||||
If this environment variable is set, :func:`faulthandler.enable` is called
|
||||
at startup: install a handler for :const:`SIGSEGV`, :const:`SIGFPE`,
|
||||
:const:`SIGABRT`, :const:`SIGBUS` and :const:`SIGILL` signals to dump the
|
||||
Python traceback. This is equivalent to :option:`-X` ``faulthandler``
|
||||
option.
|
||||
If this environment variable is set to a non-empty string,
|
||||
:func:`faulthandler.enable` is called at startup: install a handler for
|
||||
:const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and
|
||||
:const:`SIGILL` signals to dump the Python traceback. This is equivalent to
|
||||
:option:`-X` ``faulthandler`` option.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue