[Cython] Variable shadows type name in posix/time.pxd

Joel Nothman joel.nothman at gmail.com
Sun Sep 14 13:06:03 CEST 2014

a struct
and a double
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20140914/e175b4df/attachment.html>

More information about the cython-devel mailing list