summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-08-29 11:56:52 -0400
committerCharles Harris <charlesr.harris@gmail.com>2015-08-29 11:56:52 -0400
commit7001d613aaa445ff650a273ec3d4db6787daf2e3 (patch)
tree45213b57444d5c8d232207688e5b9682bcdb1a83 /numpy/core/_internal.py
parent2e9bd3f1ead83392b5148e71b48d75020a15ee5d (diff)
parent3a52e1942aac937e8ae8381f9ea519b9328fd052 (diff)
downloadnumpy-7001d613aaa445ff650a273ec3d4db6787daf2e3.tar.gz
Merge pull request #6166 from pv/sld
Better memory overlap detection
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index bf492d105..879f4a224 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -759,3 +759,7 @@ def _gcd(a, b):
while b:
a, b = b, a % b
return a
+
+# Exception used in shares_memory()
+class TooHardError(RuntimeError):
+ pass