Skip to content

Deprecate TracebackException.exc_type  #112332

Description

@iritkatriel

TracebackException is supposed to be a printable snapshot of an exception. It is intended to be lightweight (release references to frames, etc) and easily serialised.

Since the exc_type field is causing issues for subinterpreters, I suggest we deprecate it and replace it with a snapshot of the type.

Until removed, we can have an arg to optionally not save it (which can be used by subinterpreters).

Linked PRs

Activity

  1. self-assigned this
    on Nov 23, 2023
  2. added a commit that references this issue on Nov 23, 2023
  3. added a commit that references this issue on Nov 28, 2023
  4. added a commit that references this issue on Feb 11, 2024
  5. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions