>
>     x = iter(range(5))
>     y = [0]
>     try:
>         zipped = zip(x, y, strict=True)
>     except ValueError: # assuming that’s the exception you want?
>         print(next(x))
>
> Should this print 1 or 2 or raise StopIteration or be a don’t-care?


 Surely no exception is raised because zip is lazy? Doesn't it still have
to be even with strict=True?
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/4GWJB2EQMYWS35OHO4Q5GVZV2RLBBOYH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to