-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
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
Conversation
|
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. |
|
Thanks @tirkarthi for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7. |
|
GH-8694 is a backport of this pull request to the 3.7 branch. |
|
GH-8695 is a backport of this pull request to the 3.6 branch. |
|
@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 |
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
Since this is a doc change I think this doesn't require a NEWS entry.
Thanks
https://bugs.python.org/issue34319