summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Rauber <jonasrauber@users.noreply.github.com>2018-03-15 13:04:40 +0100
committerGitHub <noreply@github.com>2018-03-15 13:04:40 +0100
commit37327f3cb970eeedce33bdbd6efc0d35ee0856b6 (patch)
tree4dedbacbe539e5bb5c206af9ac2db2d2b3af367b
parent020f2ad4e133b7500c7062d89368d38f19e836fd (diff)
downloadpython-numpy-37327f3cb970eeedce33bdbd6efc0d35ee0856b6.tar.gz
python-numpy-37327f3cb970eeedce33bdbd6efc0d35ee0856b6.tar.bz2
python-numpy-37327f3cb970eeedce33bdbd6efc0d35ee0856b6.zip
fixes #10747
-rw-r--r--numpy/add_newdocs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 38da1f0b3..535b372f9 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -3060,8 +3060,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('size',
"""
Number of elements in the array.
- Equivalent to ``np.prod(a.shape)``, i.e., the product of the array's
- dimensions.
+ Equal to ``np.prod(a.shape)``, i.e., the product of the array's
+ dimensions, except that ``size`` returns an instance of ``int``
+ whereas ``np.prod(a.shape)`` returns an instance of ``np.int_``
+ (e.g. ``np.int64``).
Examples
--------