Skip to content

gh-71448: Support extension in BytesIO.truncate#152252

Open
cmaloney wants to merge 1 commit into
python:mainfrom
cmaloney:bytesio_turncate2
Open

gh-71448: Support extension in BytesIO.truncate#152252
cmaloney wants to merge 1 commit into
python:mainfrom
cmaloney:bytesio_turncate2

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.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33318860 | 📁 Comparing 548c214 against main (285d96d)

  🔍 Preview build  

2 files changed
± library/io.html
± whatsnew/changelog.html

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