I was only talking about the two-argument version, iter(x, sentinel).
Betcha you didn’t even know that existed. :-)

On Fri, Mar 19, 2021 at 10:34 Paul Bryan <[email protected]> wrote:

> On Fri, 2021-03-19 at 10:22 -0700, Guido van Rossum wrote:
>
> I’m not convinced that we need aiter(x, sentinel) at all — for iter() it’s
> mostly a legacy compatibility API.
>
>
> I'm feel like I'm going to learn something today. To date, the pattern
> I've used for getting the first item from an iterable:
>
> next(iter(i))
>
>
> What's the recommended alternative?
>
> Paul
>
> --
--Guido (mobile)
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/54OFTLLED2F47R7KHDDT6ZATNT4FGNHG/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to