Possible Duplicate:
Using itertools.product and want to seed a value
I have this code, which generates a consistent list of strings.
import itertools
choices = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789"
for length in range(0,20):
for entry in itertools.product(choices, repeat = length):
string = ''.join(entry)
print string
I want to be able to continue running this script from the last known string. How is this possible to do?