Links
- pickle.py (3.3)
- pickle.py (2.7)
- PEP 307: Extensions to the pickle protocol
- The pickle protocol
- pickletools module
pickletools.optimize(picklestring)
- Returns a new equivalent pickle string after eliminating unused PUT opcodes. The optimized pickle is shorter, takes less transmission time, requires less storage space, and unpickles more efficiently.
- Pickling your Objects
- SO: Unpickling new-style with kwargs not possible?
Notes
- You may override
Unpickler::find_class(self, module, name)
. __getnewargs__
won't be called for pickle protocol < 2.