Skip to content

Commit

Permalink
Fix whatsnew
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Dec 9, 2024
1 parent cac77a6 commit 6e09ada
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,10 @@ pathlib
* Add :attr:`pathlib.Path.status` attribute, which stores an object
implementing the :class:`pathlib.types.Status` protocol (also new). The
object supports querying the file type and internally caching
:func:`~os.stat` results. Path objects generated by :meth:`Path.iterdir`
store :class:`os.DirEntry` objects, which are initialized with file type
information gleaned from scanning the parent directory.
:func:`~os.stat` results. Path objects generated by
:meth:`~pathlib.Path.iterdir` store :class:`os.DirEntry` objects, which are
initialized with file type information gleaned from scanning the parent
directory.

(Contributed by Barney Gale in :gh:`125413`.)

Expand Down

0 comments on commit 6e09ada

Please sign in to comment.