Repository navigation
DEP: Deprecate PyArray_FromDimsAndDataAndDescr, PyArray_FromDims - #14100
Conversation
There was a problem hiding this comment.
This is fine. In principle (what I mentioned with the reference counts). This needs the additional line
Py_DECREF(descr);
(it was missing in the DEPRECATE path before). This is because the reference to descr is normally "stolen" by PyArray_NewFromDescr.
There was a problem hiding this comment.
I think I would prefer this simply as part of the comment right above the function. Just replace the current comment (it is useless now anyway). (If you edit it, also please make sure it adheres to our comment style:
/*NUMPY_API
*
* Comment comme
* Which may be multiline
*/
|
Should do that for the previous one as well, but can you add a |
|
Thanks it looks good. we should add a release note for this (and actually also for the other one). The way I guess we do that now is to add a file or something similar. (could add a second file with the old PR# for the first deprecation, but I will just do it some time otherwise.) |
|
Thanks, may just merge later. The function names could be in double ticks |
|
Thanks @kritisingh1 |
Related to #11521
@seberg Please review.