Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91548

Re: Building an extension module with SWIG

From "garyr" <garyr@fidalgo.net>
Newsgroups comp.lang.python
Subject Re: Building an extension module with SWIG
Date 2015-05-30 15:55 -0700
Organization Aioe.org NNTP Server
Message-ID <mkdf53$2fh$1@speranza.aioe.org> (permalink)
References <mkco9p$gf8$1@speranza.aioe.org> <mailman.229.1433012748.5151.python-list@python.org> <mkd7nk$isi$1@speranza.aioe.org>

Show all headers | View raw


"garyr" <garyr@fidalgo.net> wrote in message
news:mkd7nk$isi$1@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.


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Building an extension module with SWIG "garyr" <garyr@fidalgo.net> - 2015-05-30 09:22 -0700
  Re: Building an extension module with SWIG Stefan Behnel <stefan_ml@behnel.de> - 2015-05-30 21:05 +0200
    Re: Building an extension module with SWIG "garyr" <garyr@fidalgo.net> - 2015-05-30 13:48 -0700
      Re: Building an extension module with SWIG "garyr" <garyr@fidalgo.net> - 2015-05-30 15:55 -0700
      Re: Building an extension module with SWIG Stefan Behnel <stefan_ml@behnel.de> - 2015-05-31 07:28 +0200
  Re: Building an extension module with SWIG "garyr" <garyr@fidalgo.net> - 2015-05-30 18:54 -0700

csiph-web