David Abrahams wrote: > OK. I guess there's one more point worth mentioning: APIs are not > always scrupulously documented. In particular, documentation might > give you no reason to think any callbacks will be invoked for a given > call, when in fact it will be. [...] > The Windows API is a prime example of this Are you sure about this? I would expect that the documentation of the Win32 API is very clear about when and how user code is invoked. More precisely, no API function except DispatchEvent will ever invoke user code. Maybe you meant "Windows API" in a more general sense? If you include COM, then yes, any invocation of a COM object may do many things, so you should always release the GIL when invoking a COM method. Regards, Martin
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