Skip to content

Commit e9233fb

Browse files
committed
Document that sys.tracebacklimit can be set to None
Add `versionchanged` marker Closes: python#127555
1 parent 8c3fd1f commit e9233fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/library/sys.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,8 +1968,11 @@ always available.
19681968
When this variable is set to an integer value, it determines the maximum number
19691969
of levels of traceback information printed when an unhandled exception occurs.
19701970
The default is ``1000``. When set to ``0`` or less, all traceback information
1971-
is suppressed and only the exception type and value are printed.
1971+
is suppressed and only the exception type and value are printed. Setting it
1972+
to ``None`` resets the limit to the default value.
19721973

1974+
.. versionchanged:: 3.6.4
1975+
Can now be set to ``0`` or ``None``.
19731976

19741977
.. function:: unraisablehook(unraisable, /)
19751978

0 commit comments

Comments
 (0)