diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-09-13 02:53:53 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-09-13 02:53:53 +0000 |
commit | b570fbbc488b4b9480fdf0f5df9fe7369af65d7c (patch) | |
tree | 16068bb6224e5c844953b729bf6e29d41de04989 /numpy/core/fromnumeric.py | |
parent | 212163e69adf725336ed73cea86fe7dc5f74ec27 (diff) | |
download | numpy-b570fbbc488b4b9480fdf0f5df9fe7369af65d7c.tar.gz |
Fix failing doctests.
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 073614495..f3e9f9b5d 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -1617,12 +1617,14 @@ def prod(a, axis=None, dtype=None, out=None): >>> x = np.array([1, 2, 3], dtype=np.uint8) >>> np.prod(x).dtype == np.uint + True If `x` is of a signed integer type, then the output type is the default platform integer: >>> x = np.array([1, 2, 3], dtype=np.int8) >>> np.prod(x).dtype == np.int + True """ try: |