[Cython] Compilation failes if a class member is named "INFINITY"
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Feb 5 12:30:54 CET 2015
Stefan Behnel wrote:
> Python extension types are just structs at the C level, and struct member
> names cannot be mangled.
Well, in principle it *could* mangle the names in
structs that aren't declared "cdef extern". I didn't
do that in Pyrex because it didn't seem necessary;
I hadn't anticipated problems like collision with
macros.
It's probably too late to change it now, since it
would break existing code that interoperates with
foreign code.
--
Greg
More information about the cython-devel
mailing list