1.

What are the differences between pickling and unpickling?

Answer»

PICKLING is the CONVERSION of python objects to binary form. Whereas, unpickling is the conversion of binary form DATA to python objects. The pickled objects are used for storing in disks or EXTERNAL memory locations. Unpickled objects are used for getting the data back as python objects upon which PROCESSING can be done in python.

Python provides a pickle module for achieving this. Pickling uses the pickle.dump() method to dump python objects into disks. Unpickling uses the pickle.load() method to get back the data as python objects.



Discussion

No Comment Found