This commit is contained in:
Sebastian Rittau 2025-12-23 14:12:53 +05:30 committed by GitHub
commit 7bd2e31a92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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, /)