On Wed, Apr 22, 2020, 4:24 AM Antoine Pitrou > But, as far as I'm concerned, the number of times where I took > advantage of zip()'s current acceptance of heteregenously-sized inputs > is extremely small. In most of my uses of zip(), a size difference > would have been a logic error that deserves noticing and fixing. >
Your experience is very different from mine. The number of times I zip differently "sized" iterators is almost surely more than 50%. The pattern Steven points to of one or more iterator being infinite is very common. But so is the case of one merely being large enough to (hopefully) match with everything in the others, but no harm in discarding extras. >
_______________________________________________ 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/KGDYTY664PRUFVGTXTKXLLSTNTA4MWRH/ Code of Conduct: http://python.org/psf/codeofconduct/