diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2019-09-11 15:08:10 (GMT) |
---|---|---|
committer | Julien Palard <julien@palard.fr> | 2019-09-11 15:08:10 (GMT) |
commit | af636f4f91b8289b6dad95cb84123f6e22fd7f4f (patch) | |
tree | db317ea1b23f9dcd6170530b511ea443d2843367 | |
parent | 3ba51d587f6897a45301ce9126300c14fcd4eba2 (diff) | |
download | cpython-af636f4f91b8289b6dad95cb84123f6e22fd7f4f.zip cpython-af636f4f91b8289b6dad95cb84123f6e22fd7f4f.tar.gz cpython-af636f4f91b8289b6dad95cb84123f6e22fd7f4f.tar.bz2 |
bpo-36182: Update pathlib.Path.write_text() docs (GH-12161)
with the case of an existing file
-rw-r--r-- | Doc/library/pathlib.rst | 3 |
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 |