Pyrex
| Origin of development | Greg Ewing |
|---|---|
| The latest edition | 0.9.9 / April 12, 2010 () |
| The correspondence OS | Cross-platform |
| Classification | Programming language |
| Official site | www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ |
Pyrex is the programming language that was developed for the purpose of assisting the making of the expansion module of Python. Python provides API of the C language to describe an expansion module. C language can describe a function and data type, and the module which I described can access it from Python. I wrap a function and the data type of the existing C library as Python object and can make it available from Python.
The tool such as SWIG assisting the automation of such a process exists, but I am limited to making an outside library available by Python, and it is necessary to describe グルーコード by hand again when a change of API is necessary. In this case Pyrex is suitable. I make it possible to describe an expansion module using a language similar to Python where a user can access C cord directly in Pyrex.
Because grammar of Python is similar to Pyrex, it is easy, and it does not have to learn a language varying in C or the C++ to describe a module of Python. In addition, it is not necessary to write グルーコード. I have only to appoint an enumeration type, data type, a function to need to access it with a header file and an expansion module of C. Pyrex compiler generates necessary グルーコード automatically and compiles Pyrex cord to working Python module.
Allied item
Outside link
This article is taken from the Japanese Wikipedia Pyrex
This article is distributed by cc-by-sa or GFDL license in accordance with the provisions of Wikipedia.
In addition, Tranpedia is simply not responsible for any show is only by translating the writings of foreign licenses that are compatible with CC-BY-SA license information.
0 개의 댓글:
댓글 쓰기