GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Python Wiki
  • PSF Wiki
  • Jython Wiki
  • Python Wiki
  • Python Implementations

This view

  • Original page
  • New address

GeezerVison is showing wiki.python.org — Pyrex

View as Markdown

Pyrex¶

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Pyrex is a Python-like language for rapidly and easily writing python extension modules. It can be described as python with C data types. With Pyrex, one can produce Python-like code that runs as fast as in C, with easy access to C libraries and functions.

The Pyrex homepage is at http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/

The two main uses of Pyrex are:

  • To speed up the execution of Python code

  • To provide a Python interface to existing C modules/libraries

For examples of the speedup that Pyrex provides, 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.

If you are looking for speed improvement, you may also want to consider other Python speedup solutions such as PyPy and weave. PyPy’s spiritual predecessor, psyco, has been deprecated and is no longer actively maintained.

For accessing existing C libraries, the ctypes module is also available in Python 2.5 and above.

Previous
PyPy Sprint
Next
Pyrex on Windows
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.