from itertools import permutations
combs = permutations(list(range(20, 30)), 9)
from copy import deepcopy
combs2 = deepcopy(combs)
next(combs)
next(combs2)
Copying a generator without blowing up memory