8000 Relocate get_elsize doc-comment. · numpy/numpy@2693f48 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2693f48

Browse files
committed
Reloc 10000 ate get_elsize doc-comment.
1 parent 8c5f004 commit 2693f48

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

numpy/f2py/src/fortranobject.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -712,15 +712,16 @@ static int swap_arrays(PyArrayObject* obj1, PyArrayObject* obj2) {
712712
||(PyArray_ISSTRING(arr) && PyTypeNum_ISSTRING(type_num)) \
713713
)
714714

715-
/*
716-
get_elsize determines array itemsize from a Python object. Returns
717-
elsize if succesful, -1 otherwise.
718-
719-
Supported types of the input are: numpy.ndarray, bytes, str, tuple,
720-
list.
721-
*/
722715
static int
723716
get_elsize(PyObject *obj) {
717+
/*
718+
get_elsize determines array itemsize from a Python object. Returns
719+
elsize if succesful, -1 otherwise.
720+
721+
Supported types of the input are: numpy.ndarray, bytes, str, tuple,
722+
list.
723+
*/
724+
724725
if (PyArray_Check(obj)) {
725726
return PyArray_DESCR((PyArrayObject *)obj)->elsize;
726727
} else if (PyBytes_Check(obj)) {

0 commit comments

Comments
 (0)
0