New submission from swgmma <jason.na...@protonmail.com>:

The docs for stat() 
(https://docs.python.org/3.9/library/pathlib.html#pathlib.Path.stat) state:

> Return information about this path (similarly to os.stat()). The result is 
> looked up at each call to this method."

Nit picks:

1) It states "similarly to os.stat()" which implies there may be differences 
between the two, when in fact they both return the same `os.stat_result` object.

2) It should mention that `stat()` returns a `os.stat_result` object without 
having to go digging into the docs for `os` to find out.

----------
assignee: docs@python
components: Documentation
messages: 363052
nosy: docs@python, swgmma
priority: normal
severity: normal
status: open
title: pathlib: reword docs for stat()
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39808>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to