So ...
I er... my code calls a simple function that really indeed takes one single boolean switch (could get "promoted" someday to an Enum) -- until the more descriptive enums come to the picture, I like to be explicit about what argument we're inputting at those early 'let's see if it works' points for clarity; and while the pure Python version was running fine ... of course Cython was quick to jump on my nerves to entertain me :)
"TypeError: ... takes no keyword arguments"
And of course there's an explanation:
"It's an optimisation. If you want to accept keywords for single argument functions, use the always_allow_keywords directive."
No comments:
Post a Comment