[Python-checkins] [3.8] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18783)

Miss Islington (bot) webhook-mailer at python.org
Thu Mar 5 13:37:02 EST 2020


https://github.com/python/cpython/commit/7b39c474e4ce7057a9e16b06d40261ff563b1e9d
commit: 7b39c474e4ce7057a9e16b06d40261ff563b1e9d
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-03-05T10:36:54-08:00
summary:

[3.8] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18783)



(cherry picked from commit 67152d0ed670227b61b5df683655b196ab04ca1a)


Co-authored-by: Brett Cannon <54418+brettcannon at users.noreply.github.com>

Automerge-Triggered-By: @brettcannon

files:
M Doc/library/pathlib.rst

diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 326bb2e933cdb..03408145cf572 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -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.
 
    ::



More information about the Python-checkins mailing list