Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate TracebackException.exc_type #112332

Closed
iritkatriel opened this issue Nov 23, 2023 · 0 comments · Fixed by #112333
Closed

Deprecate TracebackException.exc_type #112332

iritkatriel opened this issue Nov 23, 2023 · 0 comments · Fixed by #112333
Assignees

Comments

@iritkatriel
Copy link
Member

iritkatriel commented Nov 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant