summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pathlib.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index d33e2d0..acbd0e4 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -1119,6 +1119,9 @@ call fails (for example because the path doesn't exist).
>>> p.read_text()
'Text file contents'
+ An existing file of the same name is overwritten. The optional parameters
+ have the same meaning as in :func:`open`.
+
.. versionadded:: 3.5
Correspondence to tools in the :mod:`os` module