On Thu, Aug 4, 2016 at 8:21 AM, BartC <b...@freeuk.com> wrote:
> But is this a generic mechanism that works for /any/ .dll file, or does
> there have to be dedicated support for each of the 60 built-in modules?
>
> I'm talking about the former.

Frankly, I don't want that. Most C APIs are horrendously unPythonic,
so you'd need a wrapper anyway; plus, you shouldn't have to use C-like
idioms except VERY rarely (eg pointers and stuff).

You *can* use ctypes in CPython, but that's the failure mode for when
you don't have any better option. The best option, for a DLL that
doesn't already have any Python interface, is to write something in
Cython.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to