Gabriel Gellner wrote:

> 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

Oh, sorry, I see what you mean now.

No, you can't do that in Pyrex.

Note that you can't do the equivalent thing in Python either.
You have to explicitly import foo.math before using foo.math.func
if foo.math is a module.

It occurs to me that you *should* be able to supply an
__init__.pxd that cimports math into itself, but that's
not supported yet. I'll add it to my list.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to