Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Variable naming seems to be taken from .pxd in Cython 0.27.0 #1888
I had a function where the parameter name was different in the
# .pxd cdef int do_stuff(int foo) except -1 # .pyx cdef int do_stuff(int bar) except -1: return bar
I didn't try exactly this code -- the real example can be seen here: https://github.com/explosion/spaCy/blob/2480f8f521ea22b74ff90aed0853e9c0e2543b1b/spacy/tokens/doc.pyx#L494
This code compiled under Cython <0.27.0 (although I'm uncertain about whether it should have).
added a commit
Sep 26, 2017
Hmm, I cannot reproduce this. What I can see is that when using keyword arguments, it (now?) requires using the names declared in the .pxd file, which seems correct and consistent. I added a test that shows that the argument name used in the implementation is correctly defined: 1316eb2
Could you try to come up with a complete minimal example that fails for you?