Skip to content

Fix join/merge TypeError on bytes sequences - #172

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

Fix join/merge TypeError on bytes sequences#172
santhreal wants to merge 2 commits into
Suor:masterfrom
santhreal:fix/join-bytes

Conversation

@santhreal

Copy link
Copy Markdown

funcy.colls.join hits TypeError when join([b'a',b'b']) uses str join. This PR fixes the regression with a focused test covering the case.

join() always used str.join, so join([b'a', b'b']) and merge of bytes
raised TypeError. Use dest[:0].join so str and bytes both work.
@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