-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
os.path.exists
and lexists
no longer allow a keyword argument on Windows
#124917
Labels
Comments
JelleZijlstra
added a commit
that referenced
this issue
Oct 11, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Oct 11, 2024
…on Windows (pythonGH-124918) (cherry picked from commit cc2938a) Co-authored-by: Jelle Zijlstra <[email protected]>
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Oct 11, 2024
…on Windows (pythonGH-124918) (cherry picked from commit cc2938a) Co-authored-by: Jelle Zijlstra <[email protected]>
JelleZijlstra
added a commit
that referenced
this issue
Oct 11, 2024
JelleZijlstra
added a commit
that referenced
this issue
Oct 11, 2024
Can you close this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
Bug description:
Historically
os.path.exists
andos.path.lexists
have accepted their argument as a keyword,path=
. However, in 3.13 on Windows (#118755) these functions were reimplemented in C and the C functions only accept a positional argument. This was detected by typeshed CI (python/typeshed#12730).Probably doesn't have a lot of practical effect (why would you use keyword arguments for these functions?), but it's better to keep this consistent. I'll send a PR.
CPython versions tested on:
3.13
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: