-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Availbility of resource constants not properly documented #116218
Comments
The issue was raised earlier https://bugs.python.org/issue40772 #84949 But thanks for reporting, we share the common cause to make cpython better :) From what I could find, it's available only in FreeBSD (where it's just an alias for @erlend-aasland maybe the documentation could be improved if we just add that it's an alias to |
@Privat33r-dev I think we should start with adding availability annotations to those constants in the docs. |
My bad! I did a search for RLIMIT_VMEM on this tracker before posting, but I guess that wasn't thorough enough! (okay I just verified the default search includes "is:open" which was the problem. Indeed I didn't read the disclaimer mentioned in the other report carefully enough, but there are other constants that have explicit availability notes about FreeBSD, so it seems like this one should have that too? If it's useful I can probably figure out submitting a pull request for that label? |
No problem, we are all humans and it's absolutely normal, I have 2 issues that are irrelevant :)
Sure, why not. Contributions are welcome. A few useful links for you: |
I made a little research. It appears that most of the I guess that you didn't mean to check that deeply, but as a result we can add annotation to many (if not all) the constants. |
#116256) Add availability data to 'resource' module Docs
… module (pythonGH-116256) Add availability data to 'resource' module Docs (cherry picked from commit 03f86b1) Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
… module (pythonGH-116256) Add availability data to 'resource' module Docs (cherry picked from commit 03f86b1) Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
… module (python#116256) Add availability data to 'resource' module Docs
… module (python#116256) Add availability data to 'resource' module Docs
Documentation
In the docs for the 'resource' module, RLIMIT_VMEM does not have any availability notes, however, on my system (Python 3.11.7 on ArchLinux virtualized under WSL) RLIMIT_VMEM is not defined. I see:
Not sure which systems RLIMIT_VMEM is available on, but that should probably be mentioned.
Linked PRs
The text was updated successfully, but these errors were encountered: