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 moi90
Recipients andrei.avk, iritkatriel, jbw, kj, moi90, rbcollins, serhiy.storchaka
Date 2021-11-09.10:28:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636453681.78.0.0686153508785.issue43656@roundup.psfhosted.org>
In-reply-to
Content
Just to avoid misunderstandings: My pull request is not at all about silencing exceptions. It is about customizing the output of the traceback module. (Just like the introduction of capture_locals previously: #22936)

(-X capture_locals, on the other hand, is a hypothetical idea that might help with debugging, but we don't have to discuss this now.)

My main argument for the proposed change is that traceback is useless in certain situations, because capture_locals is not "robust" (it *might* raise exceptions; I could handle these in the calling code but that would again hide the stack trace that I was about to investigate) and might dump sensitive data like passwords into logfiles (msg237320, msg237323).

Nothing is taken away or hidden, but flexibility is added.

(The only other option to resolve these issues would be to re-implement much of the current functionality of traceback in a third-party module, which would lead to maintainability problems and fragmentation.)
History
Date User Action Args
2021-11-09 10:28:01moi90setrecipients: + moi90, rbcollins, serhiy.storchaka, iritkatriel, kj, andrei.avk, jbw
2021-11-09 10:28:01moi90setmessageid: <1636453681.78.0.0686153508785.issue43656@roundup.psfhosted.org>
2021-11-09 10:28:01moi90linkissue43656 messages
2021-11-09 10:28:01moi90create