]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-82378: Document the difference between sys.tracebacklimit and the limit arguments...
authorCF Bolz-Tereick <cfbolz@gmx.de>
Sun, 25 Aug 2024 22:50:43 +0000 (00:50 +0200)
committerGitHub <noreply@github.com>
Sun, 25 Aug 2024 22:50:43 +0000 (23:50 +0100)
Doc/library/traceback.rst

index bfd2c3efc4b1f67e9a750421924cc4716f4a819c..401e12be45f418db2e278e51c1c2039618448570 100644 (file)
@@ -42,6 +42,14 @@ The module defines the following functions:
    :term:`file <file object>` or :term:`file-like object` to
    receive the output.
 
+   .. 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.