Oct-13-2023, 07:34 AM
In a High-Level-View
The function
You should not use
next(object)
calls __next__(object)
.The function
next
is implemented in C and AFAIK different Python-Objects do have different implementations of __next__
in C. But the function next()
can also run the Python-Implementation of __next__
of an object.You should not use
__next__
directly.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!