Skip to content

bpo-34319: Clarify file handler closure in pathlib.read_text #8645

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

Merged
merged 1 commit into from
Aug 6, 2018

Conversation

tirkarthi
Copy link
Member

@tirkarthi tirkarthi commented Aug 3, 2018

Made the suggested changes in pathlib.read_text to clarify file handler being closed. Feel free to suggest if the wording can be improved.

Ref : https://bugs.python.org/issue34319#msg322991

How about if we add "The file is opened and then closed." before "The optional parameters have the same meaning as in open()."

Since this is a doc change I think this doesn't require a NEWS entry.

Thanks

https://bugs.python.org/issue34319

@terryjreedy
Copy link
Member

The test failures are un-related known problems with test_subprocess on two of the VSTS testers.

Tirkarthi: I was planning to open a PR with my suggestion after discussion.

@terryjreedy terryjreedy merged commit 5b2657f into python:master Aug 6, 2018
@miss-islington
Copy link
Contributor

Thanks @tirkarthi for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot
Copy link

GH-8694 is a backport of this pull request to the 3.7 branch.

@bedevere-bot
Copy link

GH-8695 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 6, 2018
…H-8645)

Patch by Terry Jan Reedy.
(cherry picked from commit 5b2657f)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 6, 2018
…H-8645)

Patch by Terry Jan Reedy.
(cherry picked from commit 5b2657f)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Aug 6, 2018
Patch by Terry Jan Reedy.
(cherry picked from commit 5b2657f)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Aug 6, 2018
Patch by Terry Jan Reedy.
(cherry picked from commit 5b2657f)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
@tirkarthi
Copy link
Member Author

@terryjreedy Thanks for merging this. Sorry, I thought your suggestion was good but no PR was raised. So I thought to raise an initial PR here and then change the wording as needed from reviewers.

Thanks

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
None yet
Development

Successfully merging this pull request may close these issues.

7 participants