mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)
Patch by Terry Jan Reedy.
This commit is contained in:
parent
8f7bb100d0
commit
5b2657fb8c
1 changed files with 2 additions and 1 deletions
|
@ -915,7 +915,8 @@ call fails (for example because the path doesn't exist):
|
||||||
>>> p.read_text()
|
>>> p.read_text()
|
||||||
'Text file contents'
|
'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
|
.. versionadded:: 3.5
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue