[Pythonmac-SIG] Speed up Python on the Mac?

Louis Pecora pecora at anvil.nrl.navy.mil
Tue Dec 6 20:57:53 CET 2005


konrad.hinsen at laposte.net wrote:

> Pyrex will make the experience of moving from Python to C modules  
> much more pleasant. You can start with a pure Python version and then  
> migrate line by line to C written in near-Python syntax. It also  
> takes care of all the boring bookkeeping, and it is portable - it  
> works on the Mac and elsewhere.
>
> SWIG is of practical use only if you already have a C library that  
> does the job you want to accelerate. And even then, it may be easier  
> to write the interface in Pyrex.

I will want to do both.  Use my current C++ libraries and write new 
C/C++ code.  Interesting that Pyrex can do the interface. 

Thanks.

-- 
Cheers,

Lou Pecora

Code 6362
Naval Research Lab
Washington, DC  20375
USA
Ph:  +202-767-6002
email:  pecora at anvil.nrl.navy.mil



More information about the Pythonmac-SIG mailing list