Skip to content

Commit 30dfe94

Browse files
committed
Add release note. Remove unused cython imports
1 parent de897af commit 30dfe94

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* ``set_string_function`` internal function was removed and ``PyArray_SetStringFunction``
2+
was stubbed out.

numpy/__init__.cython-30.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ cdef extern from "numpy/arrayobject.h":
608608
# more than is probably needed until it can be checked further.
609609
int PyArray_INCREF (ndarray) except * # uses PyArray_Item_INCREF...
610610
int PyArray_XDECREF (ndarray) except * # uses PyArray_Item_DECREF...
611-
void PyArray_SetStringFunction (object, int)
612611
dtype PyArray_DescrFromType (int)
613612
object PyArray_TypeObjectFromType (int)
614613
char * PyArray_Zero (ndarray)

numpy/__init__.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ cdef extern from "numpy/arrayobject.h":
523523
# more than is probably needed until it can be checked further.
524524
int PyArray_INCREF (ndarray) except * # uses PyArray_Item_INCREF...
525525
int PyArray_XDECREF (ndarray) except * # uses PyArray_Item_DECREF...
526-
void PyArray_SetStringFunction (object, int)
527526
dtype PyArray_DescrFromType (int)
528527
object PyArray_TypeObjectFromType (int)
529528
char * PyArray_Zero (ndarray)

numpy/_core/code_generators/numpy_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def get_annotations():
116116
# Unused slot 41, was `PyArray_GetNumericOps`,
117117
'PyArray_INCREF': (42,),
118118
'PyArray_XDECREF': (43,),
119+
# `PyArray_SetStringFunction` was stubbed out
120+
# and should be removed in the future.
119121
'PyArray_SetStringFunction': (44,),
120122
'PyArray_DescrFromType': (45,),
121123
'PyArray_TypeObjectFromType': (46,),

0 commit comments

Comments
 (0)