]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-119054: Add "Creating files and directories" section to pathlib docs. (#120186)
authorBarney Gale <barney.gale@gmail.com>
Thu, 13 Jun 2024 17:58:46 +0000 (18:58 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2024 17:58:46 +0000 (17:58 +0000)
commitc2d810b6d4deeea530648a8d0983e3a2adf6c942
tree3cc0031a95f38d248609ba45448289923d7e76e7
parent6af190f8d0c5dcb1a875072a30caee2eaf448483
GH-119054: Add "Creating files and directories" section to pathlib docs. (#120186)

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.

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Doc/library/pathlib.rst