File tree 1 file changed +11
-4
lines changed
numpy/core/src/multiarray 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1814,10 +1814,17 @@ arraydescr_names_set(PyArray_Descr *self, PyObject *val)
1814
1814
return -1 ;
1815
1815
}
1816
1816
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
+ */
1821
1828
1822
1829
N = PyTuple_GET_SIZE (self -> names );
1823
1830
if (!PySequence_Check (val ) || PyObject_Size ((PyObject * )val ) != N ) {
You can’t perform that action at this time.
0 commit comments