问什么时候应该调用PyEval_InitThreads?ENvolatile 修饰符告诉编译程序不要对该变量所参与的操作进行某些优...
Since 3.7,PyEval_ThreadsInitialized()always returns non-zero and callingPyEval_InitThreads()is useless:Py_Initialize()now always creates the GIL. These functions were deprecated in Python 3.9 by PR#18892(commitb4698ec) of issue#84058. What's New in Python 3.9: * The :c:func:`PyEval_InitThr...
Seems SWIG generates code that uses depcrecated methods with Python 3.9; warning C4996: 'PyEval_InitThreads': deprecated in 3.9 Let me know if you need further information.
PyEval_InitThreads is unecessary in py37+ and is deprecated in py39 9a730b0 marcelotduarte merged commit d7a9224 into main May 27, 2021 marcelotduarte deleted the service3 branch May 27, 2021 06:26 Sign up for free to join this conversation on GitHub. Already have an account? Sign...