Joel Nothman
2014-09-14 11:06:03 UTC
a struct
<https://github.com/cython/cython/blob/master/Cython/Includes/posix/time.pxd#L48>
and a double
<https://github.com/cython/cython/blob/master/Cython/Includes/posix/time.pxd#L105>
are defined with the name 'timezone' in posix/time.pxd. Hence
from posix.time cimport timeval, timezone, gettimeofday
cdef timeval tv
cdef timezone tz
gettimeofday(&tv, &tz)
fails with 'timezone' is not a type identifier
It would be nice if there were a test for duplicate names in pxd files.
Thanks for the awesome tool, Joel
<https://github.com/cython/cython/blob/master/Cython/Includes/posix/time.pxd#L48>
and a double
<https://github.com/cython/cython/blob/master/Cython/Includes/posix/time.pxd#L105>
are defined with the name 'timezone' in posix/time.pxd. Hence
from posix.time cimport timeval, timezone, gettimeofday
cdef timeval tv
cdef timezone tz
gettimeofday(&tv, &tz)
fails with 'timezone' is not a type identifier
It would be nice if there were a test for duplicate names in pxd files.
Thanks for the awesome tool, Joel