Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 10
    "Warning: The pickle module is not secure. Only unpickle data you trust. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling. Never unpickle data that could have come from an untrusted source, or that could have been tampered with." -- From the same manual page linked on the answer. Commented Aug 21, 2022 at 15:17
  • 1
    Pickle has the problem that it can change whenever you upgrade python. What you pickle in python 3.n you might not be able to unpickle in python 3.(n+1). This bit me once. Commented Jan 18, 2024 at 22:37