Gabriel Gellner wrote: > On Thu, Oct 23, 2008 at 01:32:22PM +1300, Greg Ewing wrote: > >> Gabriel Gellner wrote: >> >> >>> Suppose I want the following structure: >>> >>> foo/ >>> math.pxd >>> param.pxd >>> >>> So that I can do >>> >>> cimport foo >>> >>> foo.math.func() >>> foo.param.PI >>> >> You should be able to do that by putting an __init__.py >> into foo, as long as the directory containing foo is on >> Cython's include path. >> >> > When I do this I get an error about finding foo.pxd. (Note: I understand > doing: cimport foo.math and then being able to use foo.math.func, but I can't > seem to figure out if it is possible to just import the package name (which > has a __init__.py)) > I think there simply is a difference between Pyrex and Cython here -- from what (respectively) Greg and Robert says, it seems like Pyrex supports this but not Cython.
Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
