diff options
author | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2017-08-25 22:41:30 +0530 |
---|---|---|
committer | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2017-08-26 22:24:35 +0530 |
commit | 55a40e90571e2a42582a7937972e46c21d921a27 (patch) | |
tree | 6b9187535902ef408e66e64a63c130f354b9ee4d /numpy/core/_internal.py | |
parent | 0725fff599e78fd2438b603a341f122e81a908fa (diff) | |
download | numpy-55a40e90571e2a42582a7937972e46c21d921a27.tar.gz |
BUG: add `__ne__` method to dummy_ctype class.
There is no Python defined relation between `__eq__` and `__ne__`, so it is
recommended that both be defined.
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index 163145cdd..004c2762b 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -206,6 +206,8 @@ class dummy_ctype(object): return self._cls(other) def __eq__(self, other): return self._cls == other._cls + def __ne__(self, other): + return self._cls != other._cls def _getintp_ctype(): val = _getintp_ctype.cache |