The current __tracebackhide__ mechanism to hide internal code details from traceback entries is too brittle; some small refactor might start to show internal code details to users.
I propose adding a new __tracebackhideall__ mechanism which when found and set to True will strip all frames below it. This way we can add to __tracebackhideall__ at the module level of a package and any traceback from it will be hidden.
The current
__tracebackhide__mechanism to hide internal code details from traceback entries is too brittle; some small refactor might start to show internal code details to users.I propose adding a new
__tracebackhideall__mechanism which when found and set toTruewill strip all frames below it. This way we can add to__tracebackhideall__at the module level of a package and any traceback from it will be hidden.