Good PEP, Mark. I support solving this problem once and for all. One question: you claim that some implementation of TLS (Thread Local Storage) is required to implement this API, but you don't give enough implementation details to explain this requirement. I wonder if instead of relying on TLS, you could return a void* pointer from PyAutoThreadState_Ensure() which must be passed back into PyAutoThreadState_Release()? Or is TLS used for something else too? (I'm not a big fan of TLS, mostly because its API is different for each native thread package; requiring it would make the burden of providing the PyAutoThreadState API bigger.) --Guido van Rossum (home page: http://www.python.org/~guido/)
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