On 2022-06-20 03:34, Paul Moore wrote:
For the record, I think the islice solution is sufficient for this
case. But I have needed this sort of thing occasionally, and islice


The post above sums it up for me. We have next() for one to a few, islice for several to zillions, and a for-enumerate-break also for several to zillions. Cases handled, with or without import.

The parameter to next() sounds like a reasonable thing to add however, doesn't seem like it would hurt anything but the use of islice.

If any syntax is chosen, hope it won't include "*" as that definitely says "unpack" to me, as that's what I say when reading it (without a space afterward).

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

Reply via email to