> Well, I was thinking of: > > #ifdef __cplusplus > class PyAutoThreadState { > PyAutoThreadState() {state = PyAutoThreadState_Ensure();} > ~PyAutoThreadState() {PyAutoThreadState_Restore(state);} > PyAutoThreadState_State state; > } > #endif > > Meaning the C level API is always there, but a C++ compiler on any platform > should allow extension authors to say: > > void MyCppFunc(void) > { > PyAutoThreadState state; > } > > And the rest happens by magic. > > Was-only-half-serious-but-getting-more-so ly, OK, that works for me. --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