Cython disregards the c-name for "cdef public" class members
Bug #151560 reported by
Vasil Manolov
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cython |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Cython disregards the specified c-name (http://
cdef class Spam:
cdef public int eggs "_internal_name"
will generate something like
static struct PyMemberDef __pyx_members_
{"eggs", T_INT, offsetof(struct __pyx_obj_
{0, 0, 0, 0, 0}
};
which causes compile error.
Changed in cython: | |
status: | New → Fix Committed |
To post a comment you must log in.
Here's a patch to fix it.