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 eryksun
Recipients Ramin Farajpour Cami, eryksun, methane, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-02-20.06:43:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613803424.32.0.176758109612.issue43260@roundup.psfhosted.org>
In-reply-to
Content
> Isn't `PyUnicode_GET_LENGTH(text) < self->chunk_size` enough?

Yes, that's simpler, except with `<=`" instead of `<`, since the maximum count is chunk_size when pending_bytes is a list or ASCII string. When I wrote the more complex check, I did't take into account that pending_bytes would be flushed anyway if it causes pending_bytes_count to exceed chunk_size.
History
Date User Action Args
2021-02-20 06:43:44eryksunsetrecipients: + eryksun, paul.moore, tim.golden, methane, zach.ware, steve.dower, Ramin Farajpour Cami
2021-02-20 06:43:44eryksunsetmessageid: <1613803424.32.0.176758109612.issue43260@roundup.psfhosted.org>
2021-02-20 06:43:44eryksunlinkissue43260 messages
2021-02-20 06:43:44eryksuncreate