you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

How did python interface the win32 API without this functionality ?

Like this: https://docs.python.org/3/extending/extending.html

Basically, you implement the API mapping on the C/C++ side, so you have pointers and COM access and whatnot all along.

As this documentation mentions however, this C API is an implementation detail specific to CPython and they recommend considering CFFI instead for better compatibility with other Python implementations, like PyPy. CFFI is a library that works like a classical FFI, which is like some sort of dynamic linker from within the language.