[Cython] Intra-package reference not working with cimport
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Nov 4 09:01:45 CET 2008
Stephane DROUARD wrote:
> Here, the problem comes from the genererated code of bar which imports foo
> through PyImport_Import(), so letting globals to NULL, avoiding Python to
> first try importing foo from the package bar resides.
The cimport statement uses the Pyrex/Cython compiler's
idea of the module namespace at compile time. If you
move things around after that, it will get confused.
--
Greg
More information about the Cython-dev
mailing list