Python Pickle Module
Python object serialization — dump, load, dumps, loads, protocols. This category documents 5 Python pickle module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: pickle.dump(), pickle.load(), pickle.dumps(), pickle.loads(), pickle.HIGHEST_PROTOCOL. pickle.dump() serializes a Python object and writes it to a file. pickle.load() deserializes a Python object from a pickle file. pickle.dumps() serializes a Python object to bytes (instead of file). pickle.loads() deserializes a Python object from bytes (instead of file). pickle.HIGHEST_PROTOCOL an integer representing the highest available pickle protocol version. For a structured walkthrough of the whole topic, read the Pickle Module guide. Pickle Module belongs to the File & Data group alongside Pathlib Module, Shutil Module, Glob Module, Fileinput Module. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground.