Hi
Is there any known method, through API or clean programming practice to save an object to a file and then load the object again for instance if: Object inst is an instance of class C
and it has variables V1 and V2 which are currently initialized, can we save it to a file and read it back? Now what if we want to take this further, what is we have a processes or a thread running can we save it and resurrect it again?
Hi Is there any known method, through API or clean programming practice to save
Share
Use the pickle module or the (slightly) higher-level Shelve module