Saving the state of a program to allow it to be resumed [duplicate]
Put all of your “state” data in one place and use a pickle. The pickle module implements a fundamental, but powerful algorithm for serializing and de-serializing a Python object structure. “Pickling” is the process whereby a Python object hierarchy is converted into a byte stream, and “unpickling” is the inverse operation, whereby a byte stream … Read more