This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author morioprog
Recipients morioprog, ned.deily, ronaldoussoren
Date 2020-05-05.13:57:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 "", 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

Date User Action Args
2020-05-05 13:57:38morioprogsetrecipients: + morioprog, ronaldoussoren, ned.deily
2020-05-05 13:57:38morioprogsetmessageid: <>
2020-05-05 13:57:38morioproglinkissue40518 messages
2020-05-05 13:57:38morioprogcreate