]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-119054: Add "Creating files and directories" section to pathlib docs. ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Jun 2024 18:17:57 +0000 (20:17 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2024 18:17:57 +0000 (18:17 +0000)
commite0f4dd8ec5d26c2c59893ebe476090892cbfe233
treeee92a93e7973d8e570392fce80a7f278a767c43d
parent5ce72e211f5122bf52ced71433070db84997ab7c
[3.13] GH-119054: Add "Creating files and directories" section to pathlib docs. (GH-120186) (#120462)

GH-119054: Add "Creating files and directories" section to pathlib docs. (GH-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.

(cherry picked from commit c2d810b6d4deeea530648a8d0983e3a2adf6c942)

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