summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2022-12-06 13:01:11 +0100
committerSebastian Berg <sebastianb@nvidia.com>2022-12-06 20:02:37 +0100
commit2ac75e57bdc176860896e144533aa7ab42093d94 (patch)
tree2703e6e0e0a631e04ae08e0ac60e8d88ba522795 /numpy/core
parent928a7b40a40941c0c282cfad78c3a6021422a71c (diff)
downloadnumpy-2ac75e57bdc176860896e144533aa7ab42093d94.tar.gz
DOC: Fix doc `numpy.<exception>` to `numpy.exceptions.<exception>`
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/multiarray.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/multiarray.py b/numpy/core/multiarray.py
index 31b779783..636a6fbbd 100644
--- a/numpy/core/multiarray.py
+++ b/numpy/core/multiarray.py
@@ -1122,7 +1122,7 @@ def copyto(dst, src, casting=None, where=None):
>>> A
array([[4, 5, 6],
[7, 8, 9]])
-
+
"""
return (dst, src, where)
@@ -1345,7 +1345,7 @@ def shares_memory(a, b, max_work=None):
Raises
------
- numpy.TooHardError
+ numpy.exceptions.TooHardError
Exceeded max_work.
Returns
@@ -1379,7 +1379,7 @@ def shares_memory(a, b, max_work=None):
>>> np.shares_memory(x1, x2, max_work=1000)
Traceback (most recent call last):
...
- numpy.TooHardError: Exceeded max_work
+ numpy.exceptions.TooHardError: Exceeded max_work
Running ``np.shares_memory(x1, x2)`` without `max_work` set takes
around 1 minute for this case. It is possible to find problems