Skip to content

gh-114321: Expose more constants in the fcntl module #114322

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

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jan 19, 2024

@serhiy-storchaka
Copy link
Member Author

Includes all names from Linux, FreeBSD and NetBSD manpages. OpenBSD does not have new constants, and macOS have too many specific constants to deserve a separate PR.

Copy link
Contributor

@ronaldoussoren ronaldoussoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

In working on a PR for #113092 I've also tried to add tests that use all added constants, but that primarily resulted in not doing that work because that's a lot of work with few clear advantages. I'll rebase that work on this PR and will skip adding loads of new tests.

@serhiy-storchaka
Copy link
Member Author

It is just a first step. Some of these constants is difficult to use without knowing the layout of some structures. I'm going to add helpers to help with this, but this needs more steps.

@serhiy-storchaka serhiy-storchaka merged commit 1b719b3 into python:main Jan 22, 2024
@serhiy-storchaka serhiy-storchaka deleted the fcntl branch January 22, 2024 16:09
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants