Setting stacksize in a python script

前端 未结 4 1157
梦谈多话
梦谈多话 2020-11-27 07:05

I am converting a csh script to a python script. The script calls a memory-intensive executable which requires a very large stack, so the csh script sets the stacksize to un

4条回答
  •  臣服心动
    2020-11-27 07:41

    You can alter the stack size of the current process via threading.stack_size(), but I don't know if that will be correctly inherited by subprocesses. That interface also requires a specific stack size - "unlimited" isn't an option.

提交回复
热议问题