Hi, consider the following example:
$ cat demo.pyx
cdef void (*foo)()
cdef void bar() except*:
pass
foo = bar
$ cython demo.pyx
Error compiling Cython file:
------------------------------------------------------------
...
cdef void (*foo)()
cdef void bar() except*:
pass
foo = bar
^
------------------------------------------------------------
demo.pyx:6:9: Cannot assign type 'void (void)' to 'void (*)(void)'
this is all expected behavior, but the error message is entirely
misleading; it should be something like
demo.pyx:6:9: Function pointers have incompatible 'except *' declarations.
Note that the same error message also occurs when the pointer is
declared except*, and the function isn't.
~ mic_e
signature.asc
Description: OpenPGP digital signature
_______________________________________________ cython-devel mailing list [email protected] https://mail.python.org/mailman/listinfo/cython-devel
