We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5a559e + 241a530 commit 2176571Copy full SHA for 2176571
doc/source/reference/c-api/array.rst
@@ -1240,6 +1240,11 @@ User-defined data types
1240
With these two changes, the code should compile and work on both 1.x
1241
and 2.x or later.
1242
1243
+ In the unlikely case that you are heap allocating the dtype struct you
1244
+ should free it again on NumPy 2, since a copy is made.
1245
+ The struct is not a valid Python object, so do not use ``Py_DECREF``
1246
+ on it.
1247
+
1248
Register a data-type as a new user-defined data type for
1249
arrays. The type must have most of its entries filled in. This is
1250
not always checked and errors can produce segfaults. In
0 commit comments