]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127381: pathlib ABCs: remove `PathBase.cwd()` and `home()` (#127427)
authorBarney Gale <barney.gale@gmail.com>
Sat, 30 Nov 2024 18:39:39 +0000 (18:39 +0000)
committerGitHub <noreply@github.com>
Sat, 30 Nov 2024 18:39:39 +0000 (18:39 +0000)
commit328187cc4fcdd578db42cf6a16c197c3382157a7
tree0e3801a45867fa87d4a7cfb5b7dcfda06d702a97
parent4e0a4cafe8d8ecb43db62aed1d5671af583104e7
GH-127381: pathlib ABCs: remove `PathBase.cwd()` and `home()` (#127427)

These classmethods presume that the user has retained the original
`__init__()` signature, which may not be the case. Also, many virtual
filesystems don't provide current or home directories.
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Lib/test/test_pathlib/test_pathlib_abc.py