Thierry's Corner
Live as if you were to die tomorrow. Learn as if you were to live forever - Mahatma Gandhi
Updated: 3/05/02; 19:50:05.

 
Navigation


Exits



Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Sunday, April 21, 2002

Pyrex

Pyrex - A language for writing Python extension modules. Pyrex is a language specially designed for writing Python extension modules. It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python and the messy, low-level world of C...

Pyrex deals with the basic types just as easily as SWIG, but it also lets you write code to convert between arbitrary Python data structures and arbitrary C data structures, in a simple and natural way, without knowing anything about the Python/C API. That's right -- nothing at all! Nor do you have to worry about reference counting or error checking -- it's all taken care of automatically, behind the scenes, just as it is in interpreted Python code. And when fully implemented, Pyrex will let you define new built-in Python types just as easily as you can define new classes in Python.

The way this works is that you write code in a Python-like language (Pyrex), which allows you to access C data types directly, as well as standard Python data. The Pyrex code is then compiled into C. Seems like a nice way to extend a language. Better than having to use a different language completely, as when writing extension modules in C or C++. In some sense this is reminiscent of inlining and macros. [Lambda the Ultimate]

Cool !!!


11:22:37 AM Google It! comment []


© Copyright 2002 Thierry Lalinne.



Click here to visit the Radio UserLand website.

 


April 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May
Top 10 hits for Weblog on..
Google
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Help link
 3/05/02; 19:42:08.

Currently subscribed to:

Here's how this works.

Click on the coffee mug to add Thierry Lalinne's Instant Outline to your Radio UserLand buddy list.