[Cython] Strange cimport behaviour

Lars Buitinck L.J.Buitinck at uva.nl
Sat Jul 16 01:30:34 CEST 2011


2011/7/15 Vitja Makarov <vitja.makarov at gmail.com>:
> I've found strange bug. In my example cimport misses "fcntl.h" include:
>
> ((c2f2e12...)) vitja at vitja-laptop:~/work/cython-vitek/zzz$ cat ./fff.pyx
> cimport posix.unistd
> cimport posix.fcntl
>
> print posix.fcntl.O_RDWR

Fascinating; I can reproduce the error (on Scientific Linux 5.5), but
it goes away when I reverse the order of the includes.

-- 
Lars Buitinck
Scientific programmer, ILPS
University of Amsterdam


More information about the cython-devel mailing list