[Cython] Supporting cython.operator in C

Jeroen Demeyer jdemeyer at cage.ugent.be
Tue May 31 06:28:43 EDT 2016


The following code

cimport cython.operator
cdef long foo(long x, long y):
     return cython.operator.comma(x, y)

gives AttributeError: 'CBinopNode' object has no attribute 
'analyse_c_operation'

Is there any fundamental reason why such operators are only implemented 
for C++ and not pure C? What would be needed to support such operators in C?


Jeroen.


More information about the cython-devel mailing list