-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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.stat / os.lstat always present, but code checks hastattr(os, 'stat') / hasattr(os, 'lstat') #79983
Comments
Unless I'm reading incorrectly: cpython/Modules/clinic/posixmodule.c.h Lines 30 to 31 in 7a23680
cpython/Modules/clinic/posixmodule.c.h Lines 68 to 69 in 7a23680
|
looks true for os.chmod as well: cpython/Modules/clinic/posixmodule.c.h Lines 327 to 328 in 7a23680
|
I suspect these conditionals are very old and came from times when we supported some platforms that did not have these APIs. Are they present on all CPython supported platforms today? Windows is probably the only one left to verify. BSD/Linux/Un*xes and modern macOS are POSIX. macOS <= 9 (classic) has long since died. |
yep! did my due diligence there, you can check my work on #11643 all platforms have these functions since |
A BB failed. Looks like it's unrelated with this change: |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: