Mark Hammond wrote: > My entire problem is solved simply by making the API look like: > > old_state = PyAutoThreadState_Ensure(); > ... > PyAutoThreadState_Release(old_state); Aargh! I had an e-mail composed about that right away, but didn't press send for fear of increasing the noise level of Python-Dev even more. When you said saving of state is a PITA, I figured you meant that this wasn't going to work so easily. (Next time I'll at least send a private e-mail.) Should there be Py_BEGIN_AUTO_THREAD_STATE_ENSURE and Py_END_AUTO_THREAD_STATE_ENSURE macros (analogous to Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS) as well, then? -Jerry
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4