Repository navigation
Conversation
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.
Documentation build overview
425 files changed ·
|
|
This PR is stale because it has been open for 90 days with no activity. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@eendebakpt could you take a look at this one? |
|
Could you check the following cases? and |
|
Created gh-160781 for some underlying pieces which should be backported that found while updating this |
|
Closing until gh-160781 is done. Making this work well on large sizes is a lot easier with that. Will make a new PR after that which covers the extended cases here. Ended up refactoring resize_buffer_lock_held into two helpers which de-duplicates code and makes the extend easier, but that needs the large size edge cases first (and pulling into this PR is a lot more work then opening a new one) |
|
Replacement PR is up: #160933. Properly unshares branches, handles large truncates gracefully. |
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.