Is it possible to get an infinite loop in for loop?
for
My guess is that there can be an infinite for loop in Python. I\'d like to know this for future refe
Here's another solution using the itertools module.
itertools
import itertools for _ in itertools.repeat([]): # return an infinite iterator pass