]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18782)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Mar 2020 23:17:39 +0000 (15:17 -0800)
committerGitHub <noreply@github.com>
Wed, 4 Mar 2020 23:17:39 +0000 (15:17 -0800)
(cherry picked from commit 67152d0ed670227b61b5df683655b196ab04ca1a)

Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
Automerge-Triggered-By: @brettcannon
Doc/library/pathlib.rst

index 5b2df3feb7084d099078524a0bf1b2f8b375519f..9ed5d9da55a217501d041d4927a7134d4f853476 100644 (file)
@@ -662,7 +662,7 @@ call fails (for example because the path doesn't exist):
 
 .. method:: Path.stat()
 
-   Return information about this path (similarly to :func:`os.stat`).
+   Return a :class:`os.stat_result` object containing information about this path, like :func:`os.stat`.
    The result is looked up at each call to this method.
 
    ::