Remove __getslice__
Not needed. __getitem__ handles it just fine.
This commit is contained in:
parent
d1ba7b53a4
commit
714b2a6141
@ -268,18 +268,6 @@ class Transform:
|
|||||||
"""
|
"""
|
||||||
return self.__affine[index]
|
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):
|
def __lt__(self, other):
|
||||||
"""Transform instances are comparable:
|
"""Transform instances are comparable:
|
||||||
>>> t1 = Identity.scale(2, 3).translate(4, 6)
|
>>> t1 = Identity.scale(2, 3).translate(4, 6)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user