diff options
author | Xtreak <tirkarthi@users.noreply.github.com> | 2018-08-06 19:55:03 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2018-08-06 19:55:03 (GMT) |
commit | 5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1 (patch) | |
tree | 4302c00700e1183ca3b938df85fa96205fe82cc8 | |
parent | 8f7bb100d0fa7fb2714f3953b5b627878277c7c6 (diff) | |
download | cpython-5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1.zip cpython-5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1.tar.gz cpython-5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1.tar.bz2 |
bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)
Patch by Terry Jan Reedy.
-rw-r--r-- | Doc/library/pathlib.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 0929ee2..ec604f6 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -915,7 +915,8 @@ call fails (for example because the path doesn't exist): >>> p.read_text() 'Text file contents' - The optional parameters have the same meaning as in :func:`open`. + The file is opened and then closed. The optional parameters have the same + meaning as in :func:`open`. .. versionadded:: 3.5 |