pickle.HIGHEST_PROTOCOL
pickle.HIGHEST_PROTOCOL is a Python function in the Pickle Module category. An integer representing the highest available pickle protocol version. The syntax is pickle.HIGHEST_PROTOCOL. Returns: Integer. A typical example: pickle.HIGHEST_PROTOCOL # 5 (Python 3.8+). A close sibling is pickle.dump(), which serializes a Python object and writes it to a file. A close sibling is pickle.load(), which deserializes a Python object from a pickle file. A close sibling is pickle.dumps(), which serializes a Python object to bytes (instead of file). A close sibling is pickle.loads(), which deserializes a Python object from bytes (instead of file). More about this category: Python object serialization — dump, load, dumps, loads, protocols. For a broader walkthrough, read the Pickle Module guide. Related Pickle Module entries: pickle.dump(), pickle.load(), pickle.dumps(), pickle.loads(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details.