0

I am trying to write a Cython wrapper for a C library with a struct that has a member name lambda.

struct GreekType {
  int alpha;
  int beta;
  int lambda;
};

I tried

cdef extern from "greek.h":
    cdef struct GreekType:
        int alpha
        int beta
        int lambda
    

which does not compile with cython.

Is there any possible workaround?

Chang
  • 846
  • 10
  • 23
  • regarding cython (and python) reserved words, https://stackoverflow.com/questions/39700382/can-i-have-a-list-of-the-reserved-words-and-keywords-used-in-cython – hpaulj Mar 09 '23 at 07:15

0 Answers0