From cb045e9330b81c3b002339cac8213f568f7650f7 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Thu, 24 Apr 2014 21:24:18 +0200 Subject: MAINT: add a few nonnull attributes to array creation functions also fix wrong capi documentation of PyArray_NewFromDescr stating it accepts NULL dtype while it does not. --- doc/source/reference/c-api.array.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/source/reference') diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst index 2ce43b2be..23355bc91 100644 --- a/doc/source/reference/c-api.array.rst +++ b/doc/source/reference/c-api.array.rst @@ -190,7 +190,7 @@ From scratch .. cfunction:: PyObject* PyArray_NewFromDescr(PyTypeObject* subtype, PyArray_Descr* descr, int nd, npy_intp* dims, npy_intp* strides, void* data, int flags, PyObject* obj) - This function steals a reference to *descr* if it is not NULL. + This function steals a reference to *descr*. This is the main array creation function. Most new arrays are created with this flexible function. -- cgit v1.2.1