Skip to content

gh-71488: Support extension in BytesIO.truncate#152251

Closed
cmaloney wants to merge 1 commit into
python:mainfrom
cmaloney:bytesio_truncate
Closed

gh-71488: Support extension in BytesIO.truncate#152251
cmaloney wants to merge 1 commit into
python:mainfrom
cmaloney:bytesio_truncate

Conversation

@cmaloney

@cmaloney cmaloney commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Truncate beyond current size of I/O objects is documented to change the amount of allocated space. BytesIO supported truncate to shrink but not truncate to extend. Update BytesIO to support extension and fully implement the IOBase.truncate() API.

Truncate beyond current size of I/O objects is documented to change the
amount of allocated space. BytesIO supported truncate to shrink but not
truncate to extend. Update BytesIO to support extension and fully
implement the `IOBase.truncate()` API.
@cmaloney

Copy link
Copy Markdown
Contributor Author

Got the wrong issue number, will re-open a new PR

@cmaloney cmaloney deleted the bytesio_truncate branch June 26, 2026 05:50
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