The constants provided by the Python Pickle Module:
Constant Name |
Description
|
Pickle Protocol Version Related:
|
|
pickle.HIGHEST_PROTOCOL |
Returns the highest pickle protocol version of the Python installation. |
pickle.DEFAULT_PROTOCOL |
Returns the default pickle protocol version of the Python installation. |
Example:
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 03:13:28) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pickle >>> pickle.HIGHEST_PROTOCOL 4 >>> pickle.DEFAULT_PROTOCOL 3 >>> |