[Pyrex] Possible syntax for direct cimport from C header files

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Jul 22 02:46:14 CEST 2003


John J Lee <jjl at pobox.com>:

> This makes me think of a posssible syntax for cimport from C header files
> (which I posted about earlier).  How about only allowing exactly this
> "import *" form, perhaps only in .pxd files?
> 
> from "foo/blah.h" cimport *

I doubt whether Pyrex will ever read the .h files itself.
Rather, there will be a tool that generates a .pxd file from
a .h file (or as much of it as it can) which you then import
using a normal cimport statement.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list