gh-82378: Document the difference between sys.tracebacklimit and the limit arguments (GH-123286)
(cherry picked from commit
70bfef52b5734d6cd81c5e8ca9eaf85658916b04)
Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
: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.