[Pyrex] Possible bug with """

Edward C. Jones edcjones at erols.com
Thu Apr 24 20:27:50 CEST 2003


There may be a bug in Pyrex involving triple quotes. "pyrexc wrapped.pyx"
fails with the message ".../wrapped.pyx:7:4: Executable statement not
allowed here".

-----------------
astruct.h:

typedef struct {
     int i;
} A_Struct;

-----------------
astruct.c:

#include "astruct.h"

-----------------
wrapped.pyx:

cdef extern from "astruct.h":
     ctypedef struct c_A_Struct "A_Struct":
         int c_i "i"

cdef class A_Struct:
     cdef int c_i
     """
     """





More information about the Pyrex mailing list