[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: It turns out there is a similar precedent which was solved in the same way: issue18787. -- ___ Python tracker ___

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch pull_requests: +16360 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16804 ___ Python tracker

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : >>> import resource >>> high = 300 * 1024 * 1024 >>> resource.setrlimit(resource.RLIMIT_MEMLOCK, (high, high)) Traceback (most recent call last): File "", line 1, in ValueError: not allowed to raise maximum limit >>>