-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
ENH: Strict checking of ufunc keyword argument names #5659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Raises a TypeError if any of the keyword arguments supplied to a ufunc does not exactly match the name in the signature. Prior to this, trailing characters were discarded, e.g. 'out2' would be treated as if it where 'out'.
Some explanation on the If there is agreement I have no problem going back to |
Nice! And I think it is OK to support both |
How does this play with the override mechanism? Can they both appear or is On Tue, Mar 10, 2015 at 9:23 AM, Marten van Kerkwijk <
|
I also like Good question, Eric, will look into it. I think the only thing the override does with the arguments is to convert the outputs into a tuple and add them to the keyword dictionary. So behavior would be unchanged there: you could be receiving either |
So I just checked, @ewmoore, and things are like I thought: with this change the override mechanism may hand a dictionary with either |
If we're picking just one then full words are generally nice things.
|
👍 to passing on |
I haven't written anything using the override, but, I think it absolutely On Wed, Mar 11, 2015 at 9:21 AM, Marten van Kerkwijk <
|
+1 on normalizing override to pass "signature". |
ENH: Strict checking of ufunc keyword argument names
LGTM, thanks Jaime. |
Raises a TypeError if any of the keyword arguments supplied to a
ufunc does not exactly match the name in the signature. Prior to
this, trailing characters were discarded, e.g. 'out2' would be
treated as if it where 'out'.