]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-27910: Update documentation of traceback module (GH-6116)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 2 Aug 2018 17:00:57 +0000 (10:00 -0700)
committerBerker Peksag <berker.peksag@gmail.com>
Thu, 2 Aug 2018 17:00:57 +0000 (20:00 +0300)
commit295342adbfd905d5b4a77f960ea39649df7d9997
tree54dcfe87b4963f3f10e0e9033b674f96c12824af
parent8c4a0059accb5cb33e90ec5b2f3e9dc08e2f3048
bpo-27910: Update documentation of traceback module (GH-6116)

In the documentation for the traceback module, the definitions of functions
extract_tb(), format_list() and classmethod StackSummary.from_list()
mention the old style 4-tuples that these functions used to return or accept.

Since Python 3.5, however, they return or accept a FrameSummary object
instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples.

Co-authored-by: torsava <torsava@redhat.com>
Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
(cherry picked from commit f394ee5eaf6d6d8f45e0478e77d4dbff25c6bea7)
Doc/library/traceback.rst
Lib/traceback.py