We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pickle.DEFAULT_PROTOCOL
1 parent 9a06cb6 commit a3d6947Copy full SHA for a3d6947
1 file changed
stdlib/pickle.pyi
@@ -1,3 +1,4 @@
1
+import sys
2
from _pickle import (
3
PickleError as PickleError,
4
Pickler as Pickler,
@@ -103,7 +104,10 @@ __all__ = [
103
104
]
105
106
HIGHEST_PROTOCOL: Final = 5
-DEFAULT_PROTOCOL: Final = 5
107
+if sys.version_info >= (3, 14):
108
+ DEFAULT_PROTOCOL: Final = 5
109
+else:
110
+ DEFAULT_PROTOCOL: Final = 4
111
112
bytes_types: tuple[type[Any], ...] # undocumented
113
0 commit comments