Add a broader "traceback hiding" mechanism #2745
Labels
type: enhancement
new feature or API change, should be merged into features branch
type: feature-branch
new feature or API change, should be merged into features branch
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
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 toTrue
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 text was updated successfully, but these errors were encountered: