diff --git a/Objects/iterobject.c b/Objects/iterobject.c index cf4af5b81f2..9acd1b79d7a 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -82,7 +82,7 @@ iter_len(seqiterobject *it) return NULL; } else { - return Py_NotImplemented; + Py_RETURN_NOTIMPLEMENTED; } len = seqsize - it->it_index; if (len >= 0)