Message406008
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.) |
|
Date |
User |
Action |
Args |
2021-11-09 10:28:01 | moi90 | set | recipients:
+ moi90, rbcollins, serhiy.storchaka, iritkatriel, kj, andrei.avk, jbw |
2021-11-09 10:28:01 | moi90 | set | messageid: <1636453681.78.0.0686153508785.issue43656@roundup.psfhosted.org> |
2021-11-09 10:28:01 | moi90 | link | issue43656 messages |
2021-11-09 10:28:01 | moi90 | create | |
|