-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-46021: fcntl module update supporting FreeBSD's F_KINFO proposal. #30000
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
base: main
Are you sure you want to change the base?
Conversation
7e2e98a
to
62ea0ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include
- blurb (news entry)
- documentation update
- tests
- configure.ac header check
#ifdef __FreeBSD__ | ||
#include <sys/user.h> | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs an AC_CHECK_HEADERS
check in configure.ac
if (ret) { | ||
PyDict_SetItemString(ret, "status", PyLong_FromLong(f.kf_status)); | ||
PyDict_SetItemString(ret, "type", PyLong_FromLong(f.kf_type)); | ||
PyDict_SetItemString(ret, "offset", PyLong_FromLongLong(f.kf_offset)); | ||
PyDict_SetItemString(ret, "path", PyBytes_FromString(f.kf_path)); | ||
return ret; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fcntl.fcntl()
returns either an integer or bytes. If F_KINFO
needs a different return type, then it would be better to implement the feature as a new platform-specific function in the fcntl module, e.g. fcntl.kinfo(fd: int) -> dict
.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be put in the comfy chair! |
This PR is stale because it has been open for 30 days with no activity. |
https://bugs.python.org/issue46021