Skip to content

bpo-42960: resources module, adding RLIMIT_KQUEUES constant from FreeBSD #24251

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
Feb 18, 2021

Conversation

devnexen
Copy link
Contributor

@devnexen devnexen commented Jan 18, 2021

@devnexen devnexen changed the title resources module, adding RLIMIT_KQUEUES constant from FreeBSD bpo-42960: resources module, adding RLIMIT_KQUEUES constant from FreeBSD Jan 18, 2021
@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Feb 18, 2021
@devnexen
Copy link
Contributor Author

@vstinner

@@ -255,6 +255,14 @@ platform.

.. versionadded:: 3.4

.. data:: RLIMIT_KQUEUES

The maximum number of kqueues created by this user id.
Copy link
Member

Choose a reason for hiding this comment

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

I prefer the definition from the FreeBSD manual page:

"The maximum number of kqueues this user id is allowed to create."

=> "is allowed to create" rather than "created".

@@ -0,0 +1 @@
Adds RLIMIT_KQUEUES constant from FreeBSD to the resources module
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Adds RLIMIT_KQUEUES constant from FreeBSD to the resources module
Adds :data:`resource.RLIMIT_KQUEUES` constant from FreeBSD to the :mod:`resource` module.

@@ -255,6 +255,14 @@ platform.

.. versionadded:: 3.4

.. data:: RLIMIT_KQUEUES

The maximum number of kqueues is allowed to create by this user id.
Copy link
Member

Choose a reason for hiding this comment

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

it's still different than the sentence from the FreeBSD manual page, this sentence sounds wrong to me.

Copy link
Contributor

@ambv ambv left a comment

Choose a reason for hiding this comment

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

There is no "resources" module. Victor gave you a correct code suggestion you could have applied.

@bedevere-bot
Copy link

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 I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@@ -0,0 +1 @@
Adds :data:`resources.RLIMIT_KQUEUES` constant from FreeBSD to the :mod:`resources` module
Copy link
Member

Choose a reason for hiding this comment

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

please put a trailing dot to your sentence (and fix the typo in the module name)

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants