SyntaxFix
Write A Post
Hire A Developer
Questions
One possible option is to use itertools.cycle(), which will allow you to iterate indefinitely without any trick like .seek(0).
itertools.cycle()
.seek(0)
iterDic = itertools.cycle(csv.DictReader(open('file.csv')))