[c-api]Transmutation of an extension object into a read-only buffer adding an integer in-place.

Stefan Behnel stefan_ml at behnel.de
Sat Aug 11 05:12:36 EDT 2012


Giacomo Alzetta, 11.08.2012 10:55:
> Il giorno sabato 11 agosto 2012 08:40:18 UTC+2, Stefan Behnel ha scritto:
>> Giacomo Alzetta, 11.08.2012 08:21:
>>
>>> I'd prefer to stick to Python and C, without having to put cython
>>> sources or cython-generated c modules (which I know are almost
>>> completely unreadable from a human point of view. Or at least the ones I
>>> saw).
>>
>> And the cool thing is: you don't have to read them. :)
> 
> Yes, but since all this code will end-up in the hands of some examiner, he'll have to read them. :)

I'd just ask him what he prefers: beautiful Python code with a couple of
static type declarations in it, or verbose C code with lots of C-isms and
C-API-isms all over the place. If he's smart enough, he'll force you into
writing the code in Cython.

Stefan





More information about the Python-list mailing list