8000 gh-106672: C API: Report indiscriminately ignored errors by serhiy-storchaka · Pull Request #106674 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106672: C API: Report indiscriminately ignored errors #106674

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
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
serhiy-storchaka and vstinner authored Nov 6, 2023
commit fd50ea94e845ff093d5e5e475f7bcee12fdd5ab8
4 changes: 2 additions & 2 deletions Objects/abstract.c
Original file line number Diff line number Diff line change
Expand Up @@ -2474,7 +2474,7 @@ PyMapping_HasKeyString(PyObject *obj, const char *key)
int rc;
if (obj == NULL) {
// For backward compatibility.
// PyMapping_GetOptionalItemString() crashes if it is NULL.
// PyMapping_GetOptionalItemString() crashes if obj is NULL.
null_error();
rc = -1;
}
Expand All @@ -2488,7 +2488,7 @@ PyMapping_HasKeyString(PyObject *obj, const char *key)
"PyMapping_GetOptionalItemString() or PyMapping_GetItemString()");
return 0;
}
// PyMapping_HasKeyString() also clears the error set before it's call
// PyMapping_HasKeyString() also clears the error set before it's called
// if the key is not found.
if (rc == 0 && PyErr_Occurred()) {
PyErr_FormatUnraisable(
Expand Down
0