Hacker News new | ask | show | jobs
by qrian 210 days ago
itertools.count is probably what OP is looking for