[Python-Dev] Re: ANN: Pyrex - a language for writing Python extension modules

Paul Prescod paul at prescod.net
Wed Apr 10 00:01:31 EDT 2002


Greg Ewing wrote:
> 
>...
> 
> You're not meant to compile all your Python code with Pyrex.
> You only put Python code in a Pyrex module if it's needed to
> interface with non-Python code. Pyrex isn't designed to speed
> up Python code, but to bridge the gap between Python and
> non-Python. Speed, if any, comes from the non-Python code
> (Pyrex code operating on C data, or external C code).

It would be clearer if the canonical[1] PyRex example was a bridge
example instead of a "pure pyrex" example.

 Paul Prescod

[1]http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/Doc/About.html





More information about the Python-list mailing list