8000 DEP: Remove dtype names immutability deprecation for 1.7 · numpy/numpy@ff4aef4 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff4aef4

Browse files
committed
DEP: Remove dtype names immutability deprecation for 1.7
To be added back after the 1.7 release is branched.
1 parent 48d6edb commit ff4aef4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

numpy/core/src/multiarray/descriptor.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,10 +1814,17 @@ arraydescr_names_set(PyArray_Descr *self, PyObject *val)
18141814
return -1;
18151815
}
18161816

1817-
if (DEPRECATE("Setting NumPy dtype names is deprecated, the dtype "
1818-
"will become immutable in a future version") < 0) {
1819-
return -1;
1820-
}
1817+
/*
1818+
* This deprecation has been temporarily removed for the NumPy 1.7
1819+
* release. It should be re-added after the 1.7 branch is done,
1820+
* and a convenience API to replace the typical use-cases for
1821+
* mutable names should be implemented.
1822+
*
1823+
* if (DEPRECATE("Setting NumPy dtype names is deprecated, the dtype "
1824+
* "will become immutable in a future version") < 0) {
1825+
* return -1;
1826+
* }
1827+
*/
18211828

18221829
N = PyTuple_GET_SIZE(self->names);
18231830
if (!PySequence_Check(val) || PyObject_Size((PyObject *)val) != N) {

0 commit comments

Comments
 (0)
0