From 994f8a1dbb137fd4daf881184972637964983ad8 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 9 Feb 2017 12:51:32 +0000 Subject: MAINT: Remove __setslice__ and __getslice__ This code was only here for Python 2.5 compatibility, but numpy requires 2.7 at minimum --- numpy/lib/user_array.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'numpy/lib/user_array.py') diff --git a/numpy/lib/user_array.py b/numpy/lib/user_array.py index 3103da57b..62398fc3c 100644 --- a/numpy/lib/user_array.py +++ b/numpy/lib/user_array.py @@ -51,15 +51,9 @@ class container(object): def __getitem__(self, index): return self._rc(self.array[index]) - def __getslice__(self, i, j): - return self._rc(self.array[i:j]) - def __setitem__(self, index, value): self.array[index] = asarray(value, self.dtype) - def __setslice__(self, i, j, value): - self.array[i:j] = asarray(value, self.dtype) - def __abs__(self): return self._rc(absolute(self.array)) -- cgit v1.2.1