diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2013-10-28 20:35:23 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2013-10-28 20:35:23 (GMT) |
commit | 3797065ac55997741fd625a30a8308c04ee5c9b9 (patch) | |
tree | cf67e5dabe3bfcab16f64afa5118fd8b207c6da6 /Misc | |
parent | ba4e58a02172df294f16c68f0b0c4ac80184e4b0 (diff) | |
download | cpython-3797065ac55997741fd625a30a8308c04ee5c9b9.zip cpython-3797065ac55997741fd625a30a8308c04ee5c9b9.tar.gz cpython-3797065ac55997741fd625a30a8308c04ee5c9b9.tar.bz2 |
#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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -92,6 +92,10 @@ Core and Builtins Library ------- +- Issue #19395: Raise an exception when attempting to pickle a bz2 or lzma + compressor/decompressor object, rather than creating a pickle that would + cause a segfault when loaded and used. + - Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL pseudo-random number generator on fork(). |