diff options
author | Pauli Virtanen <pav@iki.fi> | 2015-08-11 23:39:42 +0300 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2015-08-29 18:19:34 +0300 |
commit | 2b66f00bed834b2569bf22c0c519dad0bf5d5bda (patch) | |
tree | aff0e40d5e69654ce25c2455fd33d2ff289edfe9 /numpy/core/_internal.py | |
parent | c317180bf167a68f3c5051b6ccd5e15023e09d91 (diff) | |
download | numpy-2b66f00bed834b2569bf22c0c519dad0bf5d5bda.tar.gz |
ENH: add shares_memory, implement may_share_memory using it
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 4 |
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 |