]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
authorNadeem Vawda <nadeem.vawda@gmail.com>
Mon, 28 Oct 2013 20:41:24 +0000 (21:41 +0100)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Mon, 28 Oct 2013 20:41:24 +0000 (21:41 +0100)
commite6514f533efba25e5aeba50208515d02d528995a
tree9895781bdec365d927ee7669366773119c5164ad
parentd1b48998e5b404387c8f0942197189ba3207c15e
parent3797065ac55997741fd625a30a8308c04ee5c9b9
#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
Modules/_bz2module.c
Modules/_lzmamodule.c