Is it safe to call print in a Python signal handler?
- Python 近 90 天出现 23 次
- 上一次:同一天稍早 · When str.lower() is a security vulnerability in Python – Seth Larson
发生了什么
We learned earlier that because Python has two signal handlers , the onerous restrictions on what functions a signal handler may call do not apply to Python, because CPython does not call the user-supplied Python signal handler inside the low-level C signal handler, where those restrictions do apply, but arranges for it to be called later, when the interpreter is in a consistent state.
摘要按规则整理自下方来源原文