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 nikratio
Recipients Arfrever, christian.heimes, eric.araujo, martin.panter, nadeem.vawda, nikratio, pitrou, serhiy.storchaka
Date 2014-01-25.18:46:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390675573.21.0.203845624694.issue15955@psf.upfronthosting.co.za>
In-reply-to
Content
Let me be more precise: 

My suggestion is not to remove `unconsumed_tail` entirely, but I think its value needs to be defined only when the end of the compressed stream has been reached.

In other words, you could still do:

while not decomp.eof
  # ...
if decomp.unconsumed_tail:
    raise RuntimeError('unexpected data after end of compressed stream')

but as long as decomp.eof is True, decomp.unconsumed_tail could (as far as I can tell) be None, no matter if there is uncompressed data in the internal buffer or not.
History
Date User Action Args
2014-01-25 18:46:13nikratiosetrecipients: + nikratio, pitrou, christian.heimes, nadeem.vawda, eric.araujo, Arfrever, martin.panter, serhiy.storchaka
2014-01-25 18:46:13nikratiosetmessageid: <1390675573.21.0.203845624694.issue15955@psf.upfronthosting.co.za>
2014-01-25 18:46:13nikratiolinkissue15955 messages
2014-01-25 18:46:13nikratiocreate