Skip to content

Commit 6fe7f5d

Browse files
Address review
1 parent 07438f6 commit 6fe7f5d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Specialize :opcode:`!FOR_ITER` for dictionary item iteration. In the JIT, this is optimized even further when code is unpacking the result to a pair.
1+
Specialize :opcode:`!FOR_ITER` for iteration over dictionary items. In the JIT, this is optimized even further when code is unpacking the result to a pair.

Objects/dictobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5447,6 +5447,7 @@ dictiter_iternextitem_lock_held(PyDictObject *d, PyObject *self,
54475447
int
54485448
_PyDictIter_IterNextItemPair(PyObject *self, PyObject **key, PyObject **value)
54495449
{
5450+
assert(Py_IS_TYPE(self, &PyDictIterItem_Type));
54505451
_PyDictIterObject *di = (_PyDictIterObject *)self;
54515452
PyDictObject *d = di->di_dict;
54525453

0 commit comments

Comments
 (0)