Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jeffybefffy519
· 4y ago · 0 comments
Could just raise StopIteration?
Comments
[–]
BiteCode_dev
4y ago
The first loop would catch it, it would not reach the next. But you can indeed use any exeption. However, itertools.product does a better job.