Skip to content

Commit

Permalink
DOC: Improve documentation comment from PR 274 comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiebe authored and charris committed May 10, 2012
1 parent 9d63dae commit 2c4f794
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions numpy/core/src/multiarray/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ _use_inherit(PyArray_Descr *type, PyObject *newobj, int *errflag);
/*
* Creates a dtype object from ctypes inputs.
*
* Returns NULL if this is not possible, but does not
* set a Python exception.
* Returns a new reference to a dtype object, or NULL
* if this is not possible. When it returns NULL, it does
* not set a Python exception.
*/
static PyArray_Descr *
_arraydescr_fromctypes(PyObject *obj)
Expand Down Expand Up @@ -100,8 +101,9 @@ _arraydescr_fromctypes(PyObject *obj)
* - The object is a ctypes type object, including array
* and structure types.
*
* Returns NULL if this is not possible, but does not
* set a Python exception.
* Returns a new reference to a dtype object, or NULL
* if this is not possible. When it returns NULL, it does
* not set a Python exception.
*/
NPY_NO_EXPORT PyArray_Descr *
_arraydescr_fromobj(PyObject *obj)
Expand Down

0 comments on commit 2c4f794

Please sign in to comment.