Closed
Description
Feature or enhancement
Proposal:
Quoting @eryksun:
I agree that all of these
_path_is*
and_path_[l]exists
helpers are a lot of code to maintain, taken together. It could be refactored into smaller inline helper functions that can be reused, which would also make the code more readable.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
Linked PRs
- gh-118507 : Refactor
nt._path_is*
#118755 - [3.13] gh-118507 : Refactor
nt._path_is*
to improve applicability for other cases (GH-118755) #119360 - [3.12] gh-118507 : Fix
ntpath.isfile
for pipes. #119381 - [3.12] gh-118507 : Speed up
ntpath.isjunction()
&ntpath.lexists()
with native helpers (GH-118755) #119420 - gh-118507: Amend news entry #120817
- [3.13] gh-118507: Amend news entry to mention ntpath.isfile bugfix (GH-120817) #121365