On Thu, Dec 12, 2019 at 12:53:26AM +1300, Greg Ewing 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"?
Only in the sense that if I saw a function called "one", I would have absolutely no idea whatsoever what it did, so I would be forced to read the docs, which hopefully would explicitly document the two different kinds of behaviour. -- Steven _______________________________________________ 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/OXDGITG4WDDOM5DPU3IHZORRV65MYDZB/ Code of Conduct: http://python.org/psf/codeofconduct/