Skip to content

gh-127555: Document that sys.tracebacklimit can be set to None #127556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2101,8 +2101,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, /)

Expand Down
Loading