[issue9120] Reduce pickle size for an empty set

Alexandre Vassalotti report at bugs.python.org
Thu Jul 1 07:31:32 CEST 2010


Alexandre Vassalotti <alexandre at peadrop.com> added the comment:

> This begs a question, however: why not use regular python bytecode in pickles?

Unlike pickle protocols, the bytecode is not required to be compatible across Python versions. Furthermore, Python bytecode is designed has a general purpose object serialization mechanism.

For the record, I am with Raymond about adding new opcodes for sets; pickle is complicated enough as it is. I am fine with the posted patch however.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9120>
_______________________________________


More information about the Python-bugs-list mailing list