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.

作者 serhiy.storchaka
收信人 amaury.forgeotdarc, nadeem.vawda, python-dev, serhiy.storchaka
日期 2012-11-05.13:58:46
SpamBayes Score -1.0
Marked as misclassified
Message-id <1352123927.0.0.474792282563.issue16350@psf.upfronthosting.co.za>
In-reply-to
内容
These were not idle questions.  I wrote the patch, and I had to know what behavior is correct.

Here's the patch.  It fixes potential memory bug (unconsumed_tail sets to NULL in case of out of memory), resets the unconsumed_tail to b'' after EOF, updates unconsumed_tail and unused_data in flush().

I a little changed test for the previous case (here was O(N^2) for large data).  I checked it on non-fixed Python, bug was catched.
历史
日期 用户 动作 参数
2012-11-05 13:58:47serhiy.storchaka修改recipients: + serhiy.storchaka, amaury.forgeotdarc, nadeem.vawda, python-dev
2012-11-05 13:58:46serhiy.storchaka修改messageid: <1352123927.0.0.474792282563.issue16350@psf.upfronthosting.co.za>
2012-11-05 13:58:46serhiy.storchaka链接issue16350 messages
2012-11-05 13:58:46serhiy.storchaka创建