BUG: Ignore whitespaces while parsing gufunc signatures#19627
BUG: Ignore whitespaces while parsing gufunc signatures#19627charris merged 6 commits intonumpy:mainfrom
Conversation
|
The parsing is actually implemented twice: once in |
Ah, thanks for pointing that out! Sure, I will take a look and update the PR. Update: There is already one signature parsing test in |
|
The C-code apparently accepts both |
The regex I have used should take care of all whitespace characters, not just space (unless I'm missing something). Replacing all whitespaces in the input signature would also involve using regex: |
|
Thanks @ankitdwivedi23 . |
Resolves #19597
Based on the description of gufunc signatures, whitespaces in the signature should be ignored, which is not the current behavior for the
signatureargument tonp.vectorize. This pull request attempts to address that.