This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients BTaskaya, ammar2, pablogsal, terry.reedy
Date 2021-07-05.16:47:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625503625.05.0.62837078116.issue44569@roundup.psfhosted.org>
In-reply-to
Content
During the implementation of PEP 657, Terry Jan Reedy pointed out that in the format method of traceback.StackSummary there are two roles being fulfilled, there is some logic to handle omitting repeated lines involved in recursive calls and then the core per-frame formatting logic:
 https://github.com/python/cpython/blob/17f94e28882e1e2b331ace93f42e8615383dee59/Lib/traceback.py#L484-L503

To allow the per-line formatting to be overridden easily, these lines should be split into a separate method.
History
Date User Action Args
2021-07-05 16:47:05ammar2setrecipients: + ammar2, terry.reedy, pablogsal, BTaskaya
2021-07-05 16:47:05ammar2setmessageid: <1625503625.05.0.62837078116.issue44569@roundup.psfhosted.org>
2021-07-05 16:47:05ammar2linkissue44569 messages
2021-07-05 16:47:04ammar2create