cpython/Lib/pathlib
Barney Gale e4ff131e01
GH-44626, GH-105476: Fix ntpath.isabs() handling of part-absolute paths (#113829)
On Windows, `os.path.isabs()` now returns `False` when given a path that
starts with exactly one (back)slash. This is more compatible with other
functions in `os.path`, and with Microsoft's own documentation.

Also adjust `pathlib.PureWindowsPath.is_absolute()` to call
`ntpath.isabs()`, which corrects its handling of partial UNC/device paths
like `//foo`.

Co-authored-by: Jon Foster <jon@jon-foster.co.uk>
2024-01-13 07:36:05 +00:00
..
__init__.py GH-113528: Deoptimise pathlib._abc.PurePathBase (#113559) 2024-01-09 23:52:15 +00:00
_abc.py GH-44626, GH-105476: Fix ntpath.isabs() handling of part-absolute paths (#113829) 2024-01-13 07:36:05 +00:00