]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] GH-119054: Add "Creating files and directories" section to pathlib docs. ...
authorBarney Gale <barney.gale@gmail.com>
Thu, 13 Jun 2024 18:21:27 +0000 (19:21 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2024 18:21:27 +0000 (19:21 +0100)
commiteff055340f55d54f334e4b3dab01828b67319b43
tree61e44fb651b9f1979dc5c164ecfc4e0de3db1d42
parentf8dd4c3b06356d6c7b127a48d520458f3e3306b8
[3.12] GH-119054: Add "Creating files and directories" section to pathlib docs. (GH-120186) (#120464)

Add dedicated subsection for `pathlib.Path.touch()`, `mkdir()`,
`symlink_to()` and `hardlink_to()`. Also note that `open()`, `write_text()`
and `write_bytes()` are often used to create files.

(cherry picked from commit c2d810b6d4deeea530648a8d0983e3a2adf6c942)
Doc/library/pathlib.rst