[Pyrex] C-API implementation in Pyrex 0.9.6

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Oct 16 23:41:28 CEST 2007


Stefan Behnel wrote:
> I also think that Pyrex should not re-import a module for each type it wants
> to cimport from it, but rather import each required module once,

Are you sure that's really worth the effort? Re-importing
an already-imported module is pretty cheap, since you're
just pulling it out of sys.modules, and the code in
question is only executed once when the importing module
is loaded.

--
Greg



More information about the Pyrex mailing list