Antoine Pitrou <[email protected]> added the comment:

Ah, right. BINPUT is used to memoize objects in case a restructive structure 
happens. You can use pickletools.optimize() to remove the useless BINPUTs out 
of a pickle stream.

Note that 3.x is more consistent and always emits the BINPUTs. It seems 2.x's 
cPickle (which is really a weird piece of code) may do some premature 
optimization here.

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13735>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to