Skip to content

Add a broader "traceback hiding" mechanism #2745

Description

@nicoddemus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementnew feature or API change, should be merged into features branchtype: feature-branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions