Skip to content

Fix bytes.split() and bytearray.split() empty edge case#2453

Merged
mzagozen merged 1 commit into
mainfrom
fix-empty-split
Sep 23, 2025
Merged

Fix bytes.split() and bytearray.split() empty edge case#2453
mzagozen merged 1 commit into
mainfrom
fix-empty-split

Conversation

@mzagozen

Copy link
Copy Markdown
Collaborator

bytes.split() was incorrectly returning null_str instead of null_bytes when splitting an empty bytes object with a separator. bytearray.split() had the same issue, now returns toB_bytearray("").

Part of #2449

bytes.split() was incorrectly returning null_str instead of null_bytes
when splitting an empty bytes object with a separator.
bytearray.split() had the same issue, now returns toB_bytearray("").
@mzagozen mzagozen enabled auto-merge September 23, 2025 14:01
@mzagozen mzagozen merged commit ad25ccc into main Sep 23, 2025
35 checks passed
@mzagozen mzagozen deleted the fix-empty-split branch September 23, 2025 14:29
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