Skip to content

Commit 6ca95a8

Browse files
authored
Make it explicit that cloudpickle cannot be used across different Python versions (#294)
1 parent d884a01 commit 6ca95a8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ Among other things, `cloudpickle` supports pickling for **lambda functions**
1515
along with **functions and classes defined interactively** in the
1616
`__main__` module (for instance in a script, a shell or a Jupyter notebook).
1717

18-
**`cloudpickle` uses `pickle.HIGHEST_PROTOCOL` by default**: it is meant to
19-
send objects between processes running the **same version of Python**.
18+
Cloudpickle can only be used to send objects between the **exact same version
19+
of Python**.
2020

2121
Using `cloudpickle` for **long-term object storage is not supported and
22-
discouraged.**
22+
strongly discouraged.**
23+
24+
**Security notice**: one should **only load pickle data from trusted sources** as
25+
otherwise `pickle.load` can lead to arbitrary code execution resulting in a critical
26+
security vulnerability.
2327

2428

2529
Installation

0 commit comments

Comments
 (0)