I agree with your detailed explanation, and it would be a great idea to add a keyword argument to the `next()` function.
Just for reference, I believe C++ also has similar function, `std::next()` which advances 'iterators', and it also works on non-indexible (i.e. linked list, etc.) containers. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/DHMSD5RPRKFYYF6BFDZT2IZHDSVXVL7V/ Code of Conduct: http://python.org/psf/codeofconduct/