unpickle the object : Pickle « Database « Python






unpickle the object

 

#To unpickle the object again, if f is a file object which has been opened for 
#reading:


f = open('/tmp/workfile', 'r+')

x = pickle.load(f)


f.close()

           
         
  








Related examples in the same category

1.pickling and shelving datapickling and shelving data
2.pickle Module
3.Use Pickle to save and read
4.Demonstrates pickling and shelving data