On Dec 11, 2019, at 03:57, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:
> 
> On 11/12/19 9:45 pm, Steven D'Aprano wrote:
>> But that's not what happens if you call `first(iterable)` multiple
>> times. Calling it once is fine, but people will call it multiple times.
> 
> Would it help if it were called "one" instead of "first"?

I’d expect one to be “like first, but raise if there are two or more elements”, 
because that’s what it means in a number of functional languages and database 
libraries, and more-itertools.

_______________________________________________
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/NRT4IRJYJO3YAWYNKTKJ254UY67ISZVF/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to