Skip to content

Conversation

@yoney
Copy link
Contributor

@yoney yoney commented Jan 30, 2026

This is a follow-up to #142947 to align bz2 with lzma implementations by returning b"" from unused_data getter when eof is not set (doc). It also refactors the unused_data to make it easier to read and to clearly show that self->unused_data cannot be NULL (since PyBytes_FromStringAndSize() only fails on allocation errors).

Ran the test with tsan build.

cc: @emmatyping @colesbury

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant