Message368149
Hello, I'm having trouble when using `resource.setrlimit` on macOS.
```
import resource
resource.setrlimit(resource.RLIMIT_STACK, resource.getrlimit(resource.RLIMIT_STACK))
```
Running this code gives the following error:
```
Traceback (most recent call last):
File "main.py", line 2, in <module>
resource.setrlimit(resource.RLIMIT_STACK, resource.getrlimit(resource.RLIMIT_STACK))
ValueError: current limit exceeds maximum limit
```
I ran the same code in my linux environment and it worked.
* macOS Catalina 10.15.4 (19E287)
* `python --version` : Python 3.7.7
Thanks. |
|
Date |
User |
Action |
Args |
2020-05-05 13:57:38 | morioprog | set | recipients:
+ morioprog, ronaldoussoren, ned.deily |
2020-05-05 13:57:38 | morioprog | set | messageid: <1588687058.44.0.691468502141.issue40518@roundup.psfhosted.org> |
2020-05-05 13:57:38 | morioprog | link | issue40518 messages |
2020-05-05 13:57:38 | morioprog | create | |
|