Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-124565: Document 'name' and 'mode' attributes for io buffered and text classes#142753

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
killeer7002-wq wants to merge3 commits intopython:main
base:main
Choose a base branch
Loading
fromkilleer7002-wq:io_branch

Conversation

@killeer7002-wq
Copy link

@killeer7002-wqkilleer7002-wq commentedDec 15, 2025
edited by github-actionsbot
Loading

Context:
As noted ingh-124565, thename andmode attributes are frequently used on file objects returned byopen() (which are typically instances ofio.TextIOWrapper or buffered readers/writers). However, the documentation previously only listed these attributes forio.FileIO.

Changes:
This PR updates the documentation forio.TextIOWrapper,io.BufferedReader, andio.BufferedWriter to explicitly state that they possessname andmode attributes. These attributes are delegated to the underlying stream, which is behavior users rely on but wasn't clearly documented.

Link:
#124565


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

@python-cla-bot
Copy link

python-cla-botbot commentedDec 15, 2025
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@aisk
Copy link
Contributor

Hi, according to thedevguide, document changes don't need a news entry.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@killeer7002-wq@aisk

[8]ページ先頭

©2009-2025 Movatter.jp