Why not allow empty code blocks?

BartC bc at freeuk.com
Wed Aug 3 19:51:15 EDT 2016


On 03/08/2016 23:31, Chris Angelico wrote:
> On Thu, Aug 4, 2016 at 8:21 AM, BartC <bc at 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



More information about the Python-list mailing list