Skip to content

Commit

Permalink
Update Doc/library/traceback.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
cfbolz and hugovk authored Aug 25, 2024
1 parent 0de4934 commit a227ce5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Doc/library/traceback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ The module defines the following functions:
:term:`file <file object>` or :term:`file-like object` to
receive the output.

Note that the meaning of the *limit* parameter is different than the meaning
of :const:`sys.tracebacklimit`. Negative *limit* values correspond to
positive values of :const:`sys.tracebacklimit`, whereas the behaviour of
positive *limit* values cannot be achieved with
:const:`sys.tracebacklimit`.
.. note::

The meaning of the *limit* parameter is different than the meaning
of :const:`sys.tracebacklimit`. A negative *limit* value corresponds to
a positive value of :const:`!sys.tracebacklimit`, whereas the behaviour of
a positive *limit* value cannot be achieved with
:const:`!sys.tracebacklimit`.

.. versionchanged:: 3.5
Added negative *limit* support.
Expand Down

0 comments on commit a227ce5

Please sign in to comment.