mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Merge e22d906539 into f9704f1d84
This commit is contained in:
commit
7bd2e31a92
1 changed files with 5 additions and 1 deletions
|
|
@ -2181,8 +2181,12 @@ always available. Unless explicitly noted otherwise, all variables are read-only
|
|||
When this variable is set to an integer value, it determines the maximum number
|
||||
of levels of traceback information printed when an unhandled exception occurs.
|
||||
The default is ``1000``. When set to ``0`` or less, all traceback information
|
||||
is suppressed and only the exception type and value are printed.
|
||||
is suppressed and only the exception type and value are printed. Setting it
|
||||
to ``None`` resets the limit to the default value.
|
||||
|
||||
.. versionchanged:: 3.6.4
|
||||
Setting to ``0`` or less now suppresses printing tracebacks.
|
||||
Setting to ``None`` now causes using the default limit.
|
||||
|
||||
.. function:: unraisablehook(unraisable, /)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue