-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-38480: resource.setrlimit() should raise PermissionError #16804
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
Conversation
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.
The whatsnew and changelog are wrong. It's ValueError
and setrlimit
. And the document of setrlimit
should also be updated. Currently it says: raises ValueError if a process tries to raise its hard limit. I think we need a versionchanged in 3.9 documents when a not super user do this PermissionError is raised.
When you're done making the requested changes, leave the comment: |
@giampaolo, please take a look at the code review. Thanks! |
@zhangyangyu could you please take one last look? |
@@ -0,0 +1,2 @@ | |||
resource.setrusage() now raises PermissionError instead of KeyError if the |
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.
it's setrlimit
When you're done making the requested changes, leave the comment: |
See: https://bugs.python.org/issue38480
https://bugs.python.org/issue38480