Visitar URL original
gh-104252: Immortalize Py_EMPTY_KEYS by ericsnowcurrently · Pull Request #104253 · python/cpython · GitHub
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
Drop an unnecessary assert.
  • Loading branch information
ericsnowcurrently committed May 9, 2023
commit 6b5c952eddb429c7cddb513884e9613dfd8c76d9
2 changes: 1 addition & 1 deletion Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ PyDict_Clear(PyObject *op)
dictkeys_decref(interp, oldkeys);
}
else {
assert(oldkeys->dk_refcnt == 1 || oldkeys == Py_EMPTY_KEYS);
assert(oldkeys->dk_refcnt == 1);
dictkeys_decref(interp, oldkeys);
Comment thread
sunmy2019 marked this conversation as resolved.
}
ASSERT_CONSISTENT(mp);
Expand Down