Skip to content
Merged
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
Next Next commit
Set "byname" properly for the reload case.
  • Loading branch information
ericsnowcurrently committed Jul 24, 2023
commit 04a19c456b6b63aab9a1272d0ea08c66b6e46875
3 changes: 2 additions & 1 deletion Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -1017,8 +1017,9 @@ _extensions_cache_set(PyObject *filename, PyObject *name, PyModuleDef *def)
}
}
else {
byname = (_Py_hashtable_t *)entry->value;
_Py_hashtable_entry_t *subentry = _Py_hashtable_get_entry(
(_Py_hashtable_t *)entry->value, PyUnicode_AsUTF8(name));
byname, PyUnicode_AsUTF8(name));
if (subentry != NULL) {
if (subentry->value == NULL) {
subentry->value = Py_NewRef(def);
Expand Down