| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks Matti. I agree that it would be good to have an automated check for these. |
Sorry, something went wrong.
|
have you tested this locally? when i tried this in cython/cython#3606 i found i needed to use PyObject* rather than object for the fourth arg |
Sorry, something went wrong.
|
No I did not, in fact we only consume cython internally in the random module. |
Sorry, something went wrong.
|
I guess backing this PR out will not really solve the problem: the signature will still be wrong |
Sorry, something went wrong.
|
How come the difference? To be able to pass NULL? I always get a bit confused, in the signature that does not have an effect on the reference counts does it? |
Sorry, something went wrong.
Sorry, something went wrong.
No, it's an input argument, so the ref-count does not change. However, an object cannot be NULL, because that signals an exception and therefore Cython does not allow object arguments to be NULL. You have to use PyObject* here to allow the argument "not to be passed". |
Sorry, something went wrong.
See comment on merged PR numpy#16223. The `perm` variable may be NULL, so cannot be passed as object.
See comment on merged PR numpy#16223. The `perm` variable may be NULL, so cannot be passed as object.
| Back | FazBrowse Home | New Git URL |
Fixes gh-16219
Not to delay this PR, but I wonder if we could somehow write a test that checks all the signatures, and checks that all the API functions appear in __init__.pxd, kind of like the way we check the API hashes