https://github.com/python/cpython/commit/70bfef52b5734d6cd81c5e8ca9eaf85658916b04
commit: 70bfef52b5734d6cd81c5e8ca9eaf85658916b04
branch: main
author: CF Bolz-Tereick <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-08-25T23:50:43+01:00
summary:

gh-82378: Document the difference between sys.tracebacklimit and the limit 
arguments (#123286)

files:
M Doc/library/traceback.rst

diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index bfd2c3efc4b1f6..401e12be45f418 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -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.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to