]> 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 16:51:48 +0000 (09:51 -0700)
committerBerker Peksag <berker.peksag@gmail.com>
Thu, 2 Aug 2018 16:51:48 +0000 (19:51 +0300)
commit0f9df886d6d1c6b239a2861a0ad0d56bb59e3922
treed6ad478a5733076c5be989b088ec770ab481068d
parent60586de02de074a33c015e5a013d85d0b17e7e61
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