Skip to content

Commit 6acd7d7

Browse files
committed
pythongh-82378: document the difference between sys.tracebacklimit and the limit arguments
1 parent 5ff638f commit 6acd7d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/traceback.rst

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ The module defines the following functions:
4242
:term:`file <file object>` or :term:`file-like object` to
4343
receive the output.
4444

45+
Note that the meaning of the *limit* parameter is different than the meaning
46+
of :const:`sys.tracebacklimit`. Negative *limit* values correspond to
47+
positive values of :const:`sys.tracebacklimit`, whereas the behaviour of
48+
positive values of *limit* cannot be achieved with
49+
:const:`sys.tracebacklimit`.
50+
4551
.. versionchanged:: 3.5
4652
Added negative *limit* support.
4753

0 commit comments

Comments
 (0)