2 ms·
Does this have runtime overhead when not printing stack traces? I imagine some optimizations might not be do-able if you need to keep around all this data in
by londons_explore 6y ago
Does this have runtime overhead when not printing stack traces? I imagine some optimizations might not be do-able if you need to keep around all this data in case it needs to be shown, but perhaps pythons optimizations aren't that advanced...
- StavrosK 6y agoIt shouldn't, what you do is hook the traceback function, though the method is fiddly to get right. I wrote a utility to do the same years ago: https://github.com/skorokithakis/tbvaccine https://github.com/skorokithakis/tbvaccine