cpython/Lib/pathlib
Barney Gale 9e6493849e
GH-139174: Prepare pathlib.Path.info for new methods (#139175)
Merge `_WindowsPathInfo` and `_PosixPathInfo` classes into a new
`_StatResultInfo` class. On Windows, this means relying on `os.stat()`
rather than `os.path.isfile()` and friends, which is a little slower. But
there's value in making the code easier to maintain, and we're going to
need the stat result for implementing `size()`, `mode()` etc.

Also move the classes from `pathlib._os` to `pathlib` proper.
2025-09-24 01:52:24 +00:00
..
__init__.py GH-139174: Prepare pathlib.Path.info for new methods (#139175) 2025-09-24 01:52:24 +00:00
_os.py GH-139174: Prepare pathlib.Path.info for new methods (#139175) 2025-09-24 01:52:24 +00:00
types.py GH-128520: pathlib ABCs: improve protocol for 'openable' objects (#134101) 2025-09-12 22:25:18 +01:00