8000 bpo-42006: Stop using PyDict_GetItemString() by hongweipeng · Pull Request #23487 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-42006: Stop using PyDict_GetItemString() #23487

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

Closed
Closed
Changes from 1 commit
Commits
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
fix
  • Loading branch information
hongweipeng committed Nov 24, 2020
commit a7f8620e68b804d418293305e5a752a639ef7033
2 changes: 1 addition & 1 deletion Python/initconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ _PyConfig_AsDict(const PyConfig *config)
static PyObject*
config_dict_get(PyObject *dict, const char *name)
{
PyObject *item = PyMapping_GetItemString(dict, name);
PyObject *item = _PyDict_GetItemStringWithError(dict, name);
if (item == NULL) {
PyErr_Format(PyExc_ValueError, "missing config key: %s", name);
return NULL;
Expand Down
0