Differences between revisions 18 and 19
Revision 18 as of 2008-01-16 07:57:38
Size: 1278
Editor: gate2-r
Comment:
Revision 19 as of 2008-11-15 14:00:05
Size: 1288
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
For '''examples''' of speedup see [http://www.eby-sarna.com/pipermail/source-changes/2002q4/000749.html this message].
or [http://www.prescod.net/python/pyrexopt/optimization.html this page].
For '''examples''' of speedup see [[http://www.eby-sarna.com/pipermail/source-changes/2002q4/000749.html|this message]].
or [[http://www.prescod.net/python/pyrexopt/optimization.html|this page]].
Line 14: Line 14:
There is an enhanced fork of Pyrex, called [http://www.cython.org Cython]. It features substantial performance optimisations and improved support for newer Python language features. There is an enhanced fork of Pyrex, called [[http://www.cython.org|Cython]]. It features substantial performance optimisations and improved support for newer Python language features.
Line 18: Line 18:
[http://www.freenet.org.nz/python/pyrexdoc pyrexdoc] is a tool for '''generating HTML documentation''' from a compiled Pyrex module, by DavidMcNab. See other DocumentationTools. [[http://www.freenet.org.nz/python/pyrexdoc|pyrexdoc]] is a tool for '''generating HTML documentation''' from a compiled Pyrex module, by DavidMcNab. See other DocumentationTools.
Line 20: Line 20:
You can also consider '''other Python speedup solutions''' such as [http://psyco.sf.net psyco] and ["weave"]. You can also consider '''other Python speedup solutions''' such as [[http://psyco.sf.net|psyco]] and [[weave]].

Pyrex is a python-like language for writing rapidly and easily python extension modules. It can be described as python with C data types. You can produce with it code as fast as in C and access to C libraries is easy.

Homepage at http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/

Two main purposes of Pyrex usage are:

  • speed up a Python code
  • provide Python interface to existing C modules/libraries

For examples of speedup see this message. or this page.

There is an enhanced fork of Pyrex, called Cython. It features substantial performance optimisations and improved support for newer Python language features.

PyrexOnWindows provides a step-by-step guide to Pyrex installation on Windows.

pyrexdoc is a tool for generating HTML documentation from a compiled Pyrex module, by DavidMcNab. See other DocumentationTools.

You can also consider other Python speedup solutions such as psyco and weave.

For access to existing C libraries you may also consider ctypes module (Python 2.5).

Pyrex (last edited 2016-07-17 03:50:47 by Victor Escobar)

Unable to edit the page? See the FrontPage for instructions.