-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows os.path.isdir has different signature #109782
Comments
aminalaee
added a commit
to aminalaee/cpython
that referenced
this issue
Sep 23, 2023
aminalaee
added a commit
to aminalaee/cpython
that referenced
this issue
Sep 23, 2023
zooba
pushed a commit
that referenced
this issue
Sep 28, 2023
csm10495
pushed a commit
to csm10495/cpython
that referenced
this issue
Sep 29, 2023
AlexWaygood
pushed a commit
to AlexWaygood/cpython
that referenced
this issue
Oct 2, 2023
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
In this PR #101324 and issue #101196 the optimized methods of
isdir
andisfile
were added for windows. If not available they will fall back togenericpath
implementations.The issue with
isdir
is that this introduced a different signature compared togenericpath
:I'm not sure if this was intentional to have different signatures depending on the platform, and there's any possibility to fix this now. Ref: python/typeshed#10751
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
os.path.isdir
has the same signature on all platforms #109790os.path.isdir
has the same signature on all platforms (GH-109790) #110233The text was updated successfully, but these errors were encountered: