]> granicus.if.org Git - python/commit
#19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
authorNadeem Vawda <nadeem.vawda@gmail.com>
Mon, 28 Oct 2013 20:35:23 +0000 (21:35 +0100)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Mon, 28 Oct 2013 20:35:23 +0000 (21:35 +0100)
commit3797065ac55997741fd625a30a8308c04ee5c9b9
treecf67e5dabe3bfcab16f64afa5118fd8b207c6da6
parentba4e58a02172df294f16c68f0b0c4ac80184e4b0
#19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).

The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
Lib/test/test_bz2.py
Lib/test/test_lzma.py
Misc/NEWS
Modules/_bz2module.c
Modules/_lzmamodule.c