Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8c723b1

Browse filesBrowse files
committed
DOC: fix C API docs for PyArray_Size
* The actual C function signature is `PyArray_Size(PyObject *op)`, and the compiler will issue a warning if you follow the current C API docs that specify `PyArrayObject*`, so clean this up. I noticed this while working on numpygh-28355, but it was also mentioned as an aside 7 years ago in numpygh-10977. [skip azp] [skip cirrus] [skip actions]
1 parent dc8f46d commit 8c723b1
Copy full SHA for 8c723b1

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎doc/source/reference/c-api/array.rst

Copy file name to clipboardExpand all lines: doc/source/reference/c-api/array.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ and its sub-types).
121121
122122
Returns the total size (in number of elements) of the array.
123123
124-
.. c:function:: npy_intp PyArray_Size(PyArrayObject* obj)
124+
.. c:function:: npy_intp PyArray_Size(PyObject* obj)
125125
126126
Returns 0 if *obj* is not a sub-class of ndarray. Otherwise,
127127
returns the total number of elements in the array. Safer version

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.