New submission from Shota Iwamoto <morio.p...@gmail.com>:
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. ---------- components: macOS messages: 368149 nosy: morioprog, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: ValueError when using resource.setrlimit on macOS Catalina type: behavior versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40518> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com