]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.8] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18783)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 5 Mar 2020 18:36:54 +0000 (10:36 -0800)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2020 18:36:54 +0000 (10:36 -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 326bb2e933cdb2ddbea283a7ce3c5520e62a4e68..03408145cf572298d9375590301f14614182496a 100644 (file)
@@ -672,7 +672,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.
 
    ::