Pickle
- 1 Python Pickle Module Constants The pickle module provides constants that can be used while calling the pickle module functions like load(), loads(), dump() and dumps(). The example prints the value of the constants pickle.HIGHEST_PROTOCOL and pickle.DEFAULT_PROTOCOL. 18 Dec 2018
- 2 pickle.dump() method in Python The dump() method in the pickle module of Python converts a Python object into a byte stream. The code example pickles a Python object and stores it in a memory buffer. 7 Dec 2018
- 3 pickle.dumps() method in Python The dumps() method of Python pickle module serializes a Python object and returns the bytes object. While the python code example shows how dumps() method works the overview describes the differences between the dump()and the dumps() methods. 12 Dec 2018
- 4 Exception classes of Python Pickle Module The pickle module provides the following classes: pickle.PickleError, pickle.PicklingError and pickle.UnpicklingError. pickle.PickleError is derived from the built-in Exception class. 18 Dec 2018
- 5 Pickle Module : Pickling(Serializing) and unpickling(De-serializing) of Python Objects The pickle module in Python serializes objects into byte stream and de-serializes the byte stream back into Python objects. The example uses the dump() method to pickle a Python object and uses the load() method to unpickle it. 26 Nov 2018
- 6 pickle.load() method in Python The load method of python pickle module unpickles the object hierarchy of one or more python objects present in a file or a buffer. The python example unpickles multiple objects from a file source and prints the object state on the console. 28 Nov 2018