[Python-ideas] Possible new itertool: comm()

Ethan Furman ethan at stoneleaf.us
Tue Jan 6 19:28:23 CET 2015


On 01/06/2015 10:00 AM, Steven D'Aprano wrote:

>     a = next(it1, MISSING)
>     b = next(it2, MISSING)

Don't forget to guard your next calls -- RunTimeError would not be a friendly way to stop iterating.  ;)

--
~Ethan~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150106/dd3e8b8e/attachment.sig>


More information about the Python-ideas mailing list