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-04.23:58:58
SpamBayes Score -1.0
Marked as misclassified
Message-id <1352073538.89.0.803988688212.issue16350@psf.upfronthosting.co.za>
In-reply-to
内容
Fixed. Thanks for the patch!


> This hacking is not needed, if first argument of PyBytes_FromStringAndSize()
> is NULL, the contents of the bytes object are uninitialized.

Oh, cool. I didn't know about that.


> What should unconsumed_tail be equal after EOF? b'' or unused_data?

Definitely b''. unconsumed_tail is meant to hold compressed data that should
be passed in to the next call to decompress(). If we are at EOF, then
decompress() should not be called again, and so it would be misleading to have
unconsumed_tail be non-empty.
历史
日期 用户 动作 参数
2012-11-04 23:58:58nadeem.vawda修改recipients: + nadeem.vawda, amaury.forgeotdarc, python-dev, serhiy.storchaka
2012-11-04 23:58:58nadeem.vawda修改messageid: <1352073538.89.0.803988688212.issue16350@psf.upfronthosting.co.za>
2012-11-04 23:58:58nadeem.vawda链接issue16350 messages
2012-11-04 23:58:58nadeem.vawda创建