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?
Python-Dev mailing list -- email@example.com
To unsubscribe send an email to firstname.lastname@example.org
Message archived at https://email@example.com/message/2XNN6NYR6WXKVQN5UDCPVMY7KRDKF3BG/
Code of Conduct: http://python.org/psf/codeofconduct/