Commit af636f4f authored by Lysandros Nikolaou's avatar Lysandros Nikolaou Committed by Julien Palard

bpo-36182: Update pathlib.Path.write_text() docs (GH-12161)

with the case of an existing file
parent 3ba51d58
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment