Remove __getslice__

Not needed.  __getitem__ handles it just fine.
This commit is contained in:
Behdad Esfahbod 2013-11-28 08:16:34 -05:00
parent d1ba7b53a4
commit 714b2a6141

View File

@ -268,18 +268,6 @@ class Transform:
"""
return self.__affine[index]
def __getslice__(self, i, j):
"""Transform instances also behave like sequences and even support
slicing:
>>> t = Offset(100, 200)
>>> t
<Transform [1 0 0 1 100 200]>
>>> t[4:]
(100, 200)
>>>
"""
return self.__affine[i:j]
def __lt__(self, other):
"""Transform instances are comparable:
>>> t1 = Identity.scale(2, 3).translate(4, 6)