On 03/08/2016 23:31, Chris Angelico wrote:
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).
Yes, you'd need an ugly wrapper. But at least it would be in Python.
As it is, you still need a wrapper, it's still ugly, and it's probably
written in C and buried in CPython somewhere.
--
Bartc
--
https://mail.python.org/mailman/listinfo/python-list