12.12.19 03:22, Stephen J. Turnbull пише:
I would prefer that it not be implemented at all, but
if it is implemented, its behavior should respect the intuition of the
majority of those who want it, which seems to me to be "a variant of
next() that doesn't raise and returns None by default on an empty
iterable."

This is not what the majority expects and is not how first() from more-itertools works.

A variant of next() that doesn't raise and returns None on an empty iterable is a 2-arguments next().
_______________________________________________
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/ZJPVI2BFJCEPEC5QOAS2Y3ATFC3M7XOF/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to