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.

作者 nadeem.vawda
收信人 amaury.forgeotdarc, nadeem.vawda, python-dev, serhiy.storchaka
日期 2012-11-05.00:31:40
SpamBayes Score -1.0
Marked as misclassified
Message-id <1352075500.5.0.441456161616.issue16350@psf.upfronthosting.co.za>
In-reply-to
内容
> flush() does not update unconsumed_tail and unused_data.
>
> >>> import zlib
> >>> x = zlib.compress(b'abcdefghijklmnopqrstuvwxyz') + b'0123456789'
> >>> dco = zlib.decompressobj()
> >>> dco.decompress(x, 1)
> b'a'
> >>> dco.flush()
> b'bcdefghijklmnopqrstuvwxyz'
> >>> dco.unconsumed_tail
> b'NIMK\xcf\xc8\xcc\xca\xce\xc9\xcd\xcb/(,*.)-+\xaf\xa8\xac\x02\x00\x90\x86\x0b 0123456789'
> >>> dco.unused_data
> b''

I see another bug here - described in issue 16411.
历史
日期 用户 动作 参数
2012-11-05 00:31:40nadeem.vawda修改recipients: + nadeem.vawda, amaury.forgeotdarc, python-dev, serhiy.storchaka
2012-11-05 00:31:40nadeem.vawda修改messageid: <1352075500.5.0.441456161616.issue16350@psf.upfronthosting.co.za>
2012-11-05 00:31:40nadeem.vawda链接issue16350 messages
2012-11-05 00:31:40nadeem.vawda创建