Skip to content

Commit 080467d

Browse files
Review addressed (comment change)
1 parent 1555aaf commit 080467d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/dictobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ insertdict(PyInterpreterState *interp, PyDictObject *mp,
19031903
// insert_combined_dict() will convert from non DICT_KEYS_GENERAL table
19041904
// into DICT_KEYS_GENERAL table if key is not Unicode.
19051905
// We don't convert it before _Py_dict_lookup because non-Unicode key
1906-
// may change generic table into Unicode/split table.
1906+
// may change generic table into Unicode table.
19071907
if (insert_combined_dict(interp, mp, hash, key, value) < 0) {
19081908
goto Fail;
19091909
}
@@ -4440,6 +4440,7 @@ dict_setdefault_ref_lock_held(PyObject *d, PyObject *key, PyObject *default_valu
44404440
if (ix == DKIX_EMPTY) {
44414441
value = default_value;
44424442

4443+
// See comment to this function in insertdict.
44434444
if (insert_combined_dict(interp, mp, hash, Py_NewRef(key), Py_NewRef(value)) < 0) {
44444445
Py_DECREF(key);
44454446
Py_DECREF(value);

0 commit comments

Comments
 (0)