pickle is Python’s own serialization format. It can store almost any object, including your own classes, shared references and cycles, which is why multiprocessing uses it. That power has a price: loading a pickle can run code. This lesson shows how pickle works, demonstrates the danger with a harmless example, and gives you rules for deciding which format to use.
More lessons in Complete Python Programming