]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-139174: Prepare `pathlib.Path.info` for new methods (part 2) (#140155)
authorBarney Gale <barney.gale@gmail.com>
Sat, 18 Oct 2025 01:13:25 +0000 (02:13 +0100)
committerGitHub <noreply@github.com>
Sat, 18 Oct 2025 01:13:25 +0000 (02:13 +0100)
commit1bfe86caaaaca3ec16351d69fa778f1212f1dd84
tree64f7a1e8413b8fae20e2ab297136366ef511ea8c
parentf4e51f253ad6c27583438f6182c33cf368bfa45f
GH-139174: Prepare `pathlib.Path.info` for new methods (part 2) (#140155)

Merge `_Info`, `_StatResultInfo` and `_DirEntryInfo` into a single `_Info`
class. No other changes.

This will allow us to use a cached `os.stat()` result from our upcoming
`_Info.stat()` method even when we have a backing `os.DirEntry`.
Lib/pathlib/__init__.py