[Pyrex] Wish: from foo cimport *

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


John J Lee <jjl at pobox.com>:

> I hardly ever use import * in Python.  However, in Pyrex, it seems it
> would be very useful.  I have a huge list of cdefs in my .pyx file, which
> I'd like to shovel into a .pxd.  If I do that, though, I'd have to rewrite
> all my C symbols with some prefix, where I'd much prefer to import them
> unqualified:

I can see your point, and it shouldn't be difficult to
allow this for cimport (since the compiler knows all the
names that are being exported). I'll add it to my list.

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