Variable shadows type name in posix/time.pxd
a struct <https://github.com/cython/cython/blob/master/Cython/Includes/posix/time.pxd#...> and a double <https://github.com/cython/cython/blob/master/Cython/Includes/posix/time.pxd#...> 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
Joel Nothman schrieb am 14.09.2014 um 13:06:
a struct <https://github.com/cython/cython/blob/master/Cython/Includes/posix/time.pxd#...> and a double <https://github.com/cython/cython/blob/master/Cython/Includes/posix/time.pxd#...> 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
Thanks. https://github.com/cython/cython/commit/4562c6b5501ec17b2e11f04be10b5d8c3d72...
It would be nice if there were a test for duplicate names in pxd files.
Agreed. http://trac.cython.org/cython_trac/ticket/835
Thanks for the awesome tool, Joel
:) Stefan
participants (2)
-
Joel Nothman -
Stefan Behnel