4 ms·Eat, sleep, rave, repeat: infinite generators in python2 points by thisjepisje 12y agobaxter001 12y agoOr a more general version that produces a stream of an arbitrary value: iter(lambda:'Anything',None)