Message368149
| Author |
morioprog |
| Recipients |
morioprog, ned.deily, ronaldoussoren |
| Date |
2020年05月05日.13:57:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1588687058.44.0.691468502141.issue40518@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|