Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Cython should warn if you have a property redefining a cdef attribute #2981
So it turns out if you have something like this in a pxd:
cdef class Foobar: cdef: object stuff
and then later on you implement this in a pyx:
cdef class Foobar: @property def stuff(self): ... @stuff.setter def stuff(self, value): ...
the setter won't be called.
I know this code is silly but it would be nice if cython would give some error or warning about the bad definition.
fwiw I tested this on 0.29.9.