Skip to content

Conversation

hongweipeng
Copy link
Contributor

@hongweipeng hongweipeng commented Nov 24, 2020

This is a complement to that PR #22648.

https://bugs.python.org/issue42006

@@ -1050,7 +1050,7 @@ _PyConfig_AsDict(const PyConfig *config)
static PyObject*
config_dict_get(PyObject *dict, const char *name)
{
PyObject *item = PyDict_GetItemString(dict, name);
PyObject *item = PyMapping_GetItemString(dict, name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyDict_GetItemString returns a borrowed reference, PyMapping_GetItemString returns an owned reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reminding, it has been replaced by PyMapping_GetItemString.

@serhiy-storchaka
Copy link
Member

There are other issues in this code. See #23488.

@hongweipeng
Copy link
Contributor Author

Superseded by #23488.

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

Successfully merging this pull request may close these issues.

4 participants