This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Fabio.Erculiani, nadeem.vawda, serhiy.storchaka
Date 2013-11-30.11:50:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385812231.9.0.111274830161.issue19839@psf.upfronthosting.co.za>
In-reply-to
Content
decompress() is affected too.

>>> import bz2
>>> bz2.decompress(bz2.compress(b'abcd') + b'xyz')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/serhiy/py/cpython/Lib/bz2.py", line 505, in decompress
    results.append(decomp.decompress(data))
OSError: Invalid data stream

On 3.2 it returns b'abcd'.
History
Date User Action Args
2013-11-30 11:50:31serhiy.storchakasetrecipients: + serhiy.storchaka, nadeem.vawda, Fabio.Erculiani
2013-11-30 11:50:31serhiy.storchakasetmessageid: <1385812231.9.0.111274830161.issue19839@psf.upfronthosting.co.za>
2013-11-30 11:50:31serhiy.storchakalinkissue19839 messages
2013-11-30 11:50:31serhiy.storchakacreate