Is there a way to serialize the generator, the current state and all (local variables, etc.), so that you can later load the line containing the serialized generator and be able to pick it up from the place where the last output instruction went out of function? If so, and you know the sample code web page, please share the link with it.
source share