Pyrex (programming language)

Pyrex (programming language)

Infobox_Software
name = Pyrex


caption =
developer = Greg Ewing
latest_release_version = 0.9.8.4
latest_release_date = June 6, 2008
operating_system = Cross-platform
genre = Programming language
website = [http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex www.cosc.canterbury.ac.nz/~greg/python/Pyrex/]

Pyrex is a programming language developed to aid in creating Python modules. Python provides a C API to write extension modules, which allows writing of functions and datatypes in C. These can then be accessed from Python. It is thus also possible to wrap the functions and datatypes of existing C libraries as Python objects and therefore make them available to Python.

There are tools like SWIG which help to automate the process, but this is limited to making an external library available in Python code. If adjustments to the API are needed, glue code must again be written manually. This is where Pyrex fits in. Pyrex allows the user to write extension modules in a Python-like language which may directly access the external C code.

The similarity of Pyrex's syntax to Python's makes it easy to write Python modules, as there is no need to learn another language (such as C or C++), and there may be no need to write any glue code. All that is needed is to specify the name of C-header files, enumerations, datatypes and functions needing to be accessed in the module, then simply use them as if they were Python objects. The Pyrex compiler will generate the necessary glue code automatically and compile the Pyrex code into a working Python module.

External links

* [http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Official homepage]
* [http://www.python.org/ Python.org]
* [http://wiki.python.org/moin/PyrexOnWindows Pyrex Installation on Windows]
* [http://www.cython.org/ Cython, the next version of Pyrex]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Python — У этого термина существуют и другие значения, см. Python (значения). Python Класс языка: му …   Википедия

  • Cython — Автор(ы): Robert Bradshaw, Stefan Behnel и др. Релиз: 0.17.1 (26 сентября 2012 года) Испытал влияние: Pyrex Лицензия Apache License Сайт …   Википедия

  • Bazaar — Тип Распределённая система управл …   Википедия

  • Cython — Not to be confused with CPython. Developer(s) Robert Bradshaw, Stefan Behnel, et al. Initial release 28 July 2007 (2007 07 28) …   Wikipedia

  • Comparison of revision control software — The following is a comparison of revision control software. The following tables includes general and technical information for notable revision control and software configuration management (SCM) software. This is an incomplete list, which may… …   Wikipedia

  • Google App Engine — Infobox Software name = Google App Engine Google App Engine Logo caption = developer = Google released = April 7, 2008 latest release version = latest release date = operating system = Any (web based application) genre = Web development Version …   Wikipedia

  • Soya3D — Infobox Software name = Soya3D caption = collapsible = author = Jean Baptiste Jiba Lamy developer = released = latest release version = latest release date = latest preview version = latest preview date = frequently updated = programming language …   Wikipedia

  • ROT13 — replaces each letter by its partner 13 characters further along the alphabet. For example, HELLO becomes URYYB (or, rev …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”