diff options
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r-- | numpy/ma/core.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 5c446252b..d806747fc 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -4327,17 +4327,6 @@ class MaskedArray(ndarray): raise MaskError('Cannot convert masked element to a Python int.') return int(self.item()) - def __long__(self): - """ - Convert to long. - """ - if self.size > 1: - raise TypeError("Only length-1 arrays can be converted " - "to Python scalars") - elif self._mask: - raise MaskError('Cannot convert masked element to a Python long.') - return long(self.item()) - @property def imag(self): """ |