You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkpy next should be called "iter_next" instead as its behaviour is radically different (does not raise) from CPython's next()
next(iterator[, default])
Return the next item from the iterator. If default is given and the iterator
is exhausted, it is returned instead of raising StopIteration.
that way it is easy to provide a similar function to other pythons
and keep codebases consistent.
idea:
pkpy next should be called "iter_next" instead as its behaviour is radically different (does not raise) from CPython's next()
that way it is easy to provide a similar function to other pythons
and keep codebases consistent.
to test
The text was updated successfully, but these errors were encountered: