Skip to content

Fix compact/select/walk on bytes collections - #174

Closed
santhreal wants to merge 2 commits into
Suor:masterfrom
santhreal:fix/compact-bytes-v2
Closed

Fix compact/select/walk on bytes collections#174
santhreal wants to merge 2 commits into
Suor:masterfrom
santhreal:fix/compact-bytes-v2

Conversation

@santhreal

Copy link
Copy Markdown

compact/select hits TypeError when compact(b'a\x00b') uses b''.join on ints. This PR fixes the regression with a focused test covering the case. ## Notes

bytes iterates as ints, so rebuilding via b''.join TypeErrors; use the
bytes type constructor like bytearray already did.
@santhreal santhreal closed this Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant