[Cython] import relative cimport

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Oct 2 00:12:07 CEST 2012


Christoph Groth wrote:

> in Cython/Compiler/Parsing.py I find code that emits "Relative cimport
> is not supported yet".

> Is this related to the behavior of Pyrex?

There's no such code in Pyrex's Parsing.py, and if I try to
compile this with Pyrex:

    from .bar.stuff cimport thing

I get

    /Users/greg/foo/foo.pyx:1:5: Expected an identifier

-- 
Greg


More information about the cython-devel mailing list