pypi / cloudpickle
cloudpickle
What changed in cloudpickle 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
2 breaking1 new APIs and options6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcloudpickle 32 changes
Breaking changes 1
Python 3.12 is officially supported, and Python 3.6 and 3.7 are no longer supported.
Fixes and other changes 1
Fixes pickling of dataclasses and their instances.
cloudpickle 27 changes
Breaking changes 1
Python 3.5 is no longer supported.
New APIs and options 1
Register modules for by-value serialization so code defined in local modules can be serialized and executed remotely without those modules installed on the remote machine.
Fixes and other changes 5
Handles the deprecation of co_lnotab in Python 3.10 and later.
Fixes a side effect that altered dynamic modules at pickling time.
Suppresses a source of non-determinism when pickling dynamically defined functions.
Adds support for pickling and depickling these OrderedDict views, following the strategy used for vanilla Python dictionaries.
Uses stricter detection heuristics to limit false positives.