FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-129011: Update docs for Raw I/O read, readinto, and write (GH-135328) by miss-islington · Pull Request #150958 · python/cpython · GitHub

Repository navigation

[3.14] gh-129011: Update docs for Raw I/O read, readinto, and write (GH-135328) - #150958

Merged
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-e4db68b-3.14
Jun 5, 2026
Merged

vstinner merged 1 commit into
python:3.14from
miss-islington:backport-e4db68b-3.14

Conversation

miss-islington commented Jun 5, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Update RawIOBase and FileIO documentation to match implementation
behavior around .read, .readinto, .readall and .write.

In particular:

Co-authored-by: Cody Maloney cmaloney@users.noreply.github.com
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Victor Stinner vstinner@python.org

…ythonGH-135328)

Update `RawIOBase` and `FileIO` documentation to match implementation
behavior around `.read`, `.readinto`, `.readall` and `.write`.

In particular:

 - They may make more than one system call (PEP-475)
 - Add warnings if `.write()` requires a wrapping retry loop (see: pythongh-126606)
    - "Raw I/O" `.write`` may not write all bytes
    - `buffering=0` example results in a "Raw I/O"
(cherry picked from commit e4db68b)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jun 5, 2026
github-project-automation Bot moved this to Todo in Docs PRs Jun 5, 2026
vstinner enabled auto-merge (squash) June 5, 2026 12:01
vstinner merged commit 7e48fc1 into python:3.14 Jun 5, 2026
35 of 36 checks passed
github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 5, 2026
miss-islington deleted the backport-e4db68b-3.14 branch June 5, 2026 12:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL