]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719)
authorBrett Cannon <54418+brettcannon@users.noreply.github.com>
Wed, 4 Mar 2020 22:51:50 +0000 (14:51 -0800)
committerGitHub <noreply@github.com>
Wed, 4 Mar 2020 22:51:50 +0000 (14:51 -0800)
Doc/library/pathlib.rst

index 5906a33bdea118992674684493e062a5ddce2f70..7c0ffd50e2c794579ee5d9c5c0fc16a8c33dff68 100644 (file)
@@ -685,7 +685,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.
 
    ::