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 vstinner
Recipients eric.smith, gvanrossum, iritkatriel, steven.daprano, vstinner
Date 2020-11-27.19:30:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I consider PR 23531 change as a bugfix and IMO it's fine to backport it.

TracebackException docstring is quite explicit:

    The traceback module captures enough attributes from the original exception
    to this intermediary form to ensure that no references are held, while
    still being able to fully print or format it.

This issue shows that there was a bug in the implementation.


The unit test should check the ref count of the exception and the exception traceback, to check functionally that no strong reference is hold.
Date User Action Args
2020-11-27 19:31:00vstinnersetrecipients: + vstinner, gvanrossum, eric.smith, steven.daprano, iritkatriel
2020-11-27 19:31:00vstinnersetmessageid: <>
2020-11-27 19:31:00vstinnerlinkissue42482 messages
2020-11-27 19:30:59vstinnercreate