Building an extension module with SWIG

garyr garyr at fidalgo.net
Sat May 30 18:55:07 EDT 2015


"garyr" <garyr at fidalgo.net> wrote in message
news:mkd7nk$isi$1 at speranza.aioe.org...
> *snip*
>
>> Compile it ("cythonize -b foo.pyx") and you'll get an extension module
>> that
>> executes faster than what SWIG would give you and keeps everything in one
>> file to improve readability.
>>
>> Stefan
>>
>>
>> [1] http://cython.org/
>>
>>
> Thanks for your reply. My interest is not in computing the gcd but to
> learn
> how build an extension module. I have some much more complicated C code I
> wish to use.
>
>
>
Thanks for your reply. I'm using the compiler that came with Anaconda Python
2.7. I too used SWIG a bunch of years ago but it has changed a lot since
then; e.g., it is now included in the Python distribution.






More information about the Python-list mailing list