Conversation
| */ | ||
| NPY_NO_EXPORT int | ||
| PyArray_Pack(PyArray_Descr *descr, char *item, PyObject *value) | ||
| PyArray_Pack(PyArray_Descr *descr, void *item, PyObject *value) |
There was a problem hiding this comment.
I have a bit of a habit of using char since we do pointer arithmetic with strides so much. But I think here void * is the normal thing clearly.
ngoldbaum
left a comment
There was a problem hiding this comment.
rebasing should fix the polynomial printing tests
|
Do you see an immediate need for this in a particular library, or a specific library where it could replace |
|
I see |
|
close/reopen |
|
Thanks Sebastian. |
Fixes #23893
This is a very simple PR to finally expose this function. I was thinking to change things to
constwhere possible but, don't want the noise here and really the const qualifiers here could be added at any point.