Do python ctypes differ from c++ when dealing with winapi? -


i prefer dynamic language python has easier syntax typed languages c++

i writing code extensively uses win32 api , question whether ctypes differ c++ when calling winapi in terms of performance , execution speed.

pure python code not fast c++. if planning on extensively using win32 api, converting python types c types , again expensive compared using c++ win32 api directly.

you should pywin32, library exposes of win32 api python. @eryksun mentions in comments below, using straight ctypes means having write wrappers c functions, definitions structures, , context managers resources, prone error. pywin32 alleviates commonly used win32 apis, doesn't contain them all.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -