20 Jun
2022
20 Jun
'22
2:40 p.m.
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