New submission from Ronald Oussoren <ronaldousso...@mac.com>:
The (non-portable) pthread APIs "pthread_get_stacksize_np()" and "pthread_get_stackaddr_np()" can be used to implement PyOS_CheckStack on macOS, which would give nicer behavior than crashing when the recursion limit is too high for the stack size of the current thread. Creating a patch should be fairly easy, but does require C knowledge. ---------- components: Interpreter Core messages: 320415 nosy: ronaldoussoren priority: low severity: normal stage: needs patch status: open title: Implement PyOS_CheckStack on macOS using pthread_get_stack*_np type: enhancement versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33955> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com