8000 gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives (in Objects/) by iritkatriel · Pull Request #102218 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives (in Objects/) #102218

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

Merged
merged 25 commits into from
Mar 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9b68505
remove redundant null check and obsolete comments (Mark's review comm…
iritkatriel Mar 3, 2023
c23baa2
Merge branch 'main' into fetch-restore-objects
iritkatriel Mar 3, 2023
44bead6
Merge branch 'main' into fetch-restore-objects
iritkatriel Mar 6, 2023
d592920
Merge branch 'main' into fetch-restore-objects
iritkatriel Mar 6, 2023
e136989
Merge branch 'main' into fetch-restore-objects
iritkatriel Mar 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
put back the Py_DECREF(exc)
  • Loading branch information
iritkatriel committed Feb 24, 2023
commit 09f2ab6fb00b7366f8d1d31d1148e3772095ed85
1 change: 1 addition & 0 deletions Objects/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -3852,6 +3852,7 @@ _PyErr_TrySetFromCause(const char *format, ...)
msg_prefix = PyUnicode_FromFormatV(format, vargs);
va_end(vargs);
if (msg_prefix == NULL) {
Py_DECREF(exc);
return NULL;
}

Expand Down
0