-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-45711: Do not push/pop traceback on stack as part of exc_info #29968
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
Conversation
Marked as draft because I still need to update the opcodes documentation |
|
||
assert(exc_info->exc_value); | ||
if (exc_info->exc_value != Py_None) { | ||
exc_info->exc_traceback = PyException_GetTraceback(exc_info->exc_value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The next step is to remove exc_traceback from exc_info and then this will not be here.
🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit 98085fe 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
This clashes with the except* branch, and I'd rather merge that one first and update this one. |
I would rather merge this first. |
We won't see a speedup for this because of the get_exc_traceback calls. We should remove them before measuring, and probably merge the whole thing together. |
And that requires PR 29922. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacing between tokens is strange.
Superseded by #30122 |
https://bugs.python.org/issue45711