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

Brett Cannon webhook-mailer at python.org
Wed Mar 4 17:51:58 EST 2020


https://github.com/python/cpython/commit/67152d0ed670227b61b5df683655b196ab04ca1a
commit: 67152d0ed670227b61b5df683655b196ab04ca1a
branch: master
author: Brett Cannon <54418+brettcannon at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-03-04T14:51:50-08:00
summary:

bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719)

files:
M Doc/library/pathlib.rst

diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 5906a33bdea11..7c0ffd50e2c79 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -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.
 
    ::



More information about the Python-checkins mailing list