Skip to content

gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase #134372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

AlexKautz
Copy link
Contributor

@AlexKautz AlexKautz commented May 20, 2025

Added a clarification that the underlying binary buffer of a TextIOBase
can be a BufferedIOBase OR a RawIOBase.

RawIOBase was previously not specified because it is a edge case (was recently added along with non-buffered mode).


📚 Documentation preview 📚: https://cpython-previews--134372.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-bot bot commented May 20, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

AlexKautz added 2 commits May 20, 2025 14:10
that the underlying binary buffer of a TextIOBase
can be a BufferedIOBase OR a RawIOBase
@AlexKautz AlexKautz force-pushed the 85045-io.TextIOBase.buffer-is-not-necessarily-a-buffer branch from 678ebbb to 169c954 Compare May 20, 2025 18:11
Copy link
Member

@gpshead gpshead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@gpshead gpshead enabled auto-merge (squash) May 20, 2025 18:14
@gpshead gpshead added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels May 20, 2025
@gpshead gpshead moved this from Todo to In Progress in Docs PRs May 20, 2025
@gpshead gpshead merged commit 36eb711 into python:main May 20, 2025
31 of 32 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Docs PRs May 20, 2025
@miss-islington-app
Copy link

Thanks @AlexKautz for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 20, 2025
…can be a RawIOBase (pythonGH-134372)

Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase
(cherry picked from commit 36eb711)

Co-authored-by: Alex Kautz <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 20, 2025
…can be a RawIOBase (pythonGH-134372)

Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase
(cherry picked from commit 36eb711)

Co-authored-by: Alex Kautz <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented May 20, 2025

GH-134374 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 20, 2025
@bedevere-app
Copy link

bedevere-app bot commented May 20, 2025

GH-134375 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label May 20, 2025
gpshead pushed a commit that referenced this pull request May 20, 2025
… can be a RawIOBase (GH-134372) (#134374)

gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372)

Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase
(cherry picked from commit 36eb711)

Co-authored-by: Alex Kautz <[email protected]>
gpshead pushed a commit that referenced this pull request May 20, 2025
… can be a RawIOBase (GH-134372) (#134375)

gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372)

Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase
(cherry picked from commit 36eb711)

Co-authored-by: Alex Kautz <[email protected]>
lkollar pushed a commit to lkollar/cpython that referenced this pull request May 26, 2025
…can be a RawIOBase (pythonGH-134372)

Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase
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.

2 participants