mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fix for
[ 587875 ] crash on deleting extended slice The array code got simpler, always a good thing!
This commit is contained in:
parent
085358a3e2
commit
56796f672f
4 changed files with 21 additions and 9 deletions
|
@ -336,6 +336,9 @@ def testtype(type, example):
|
|||
a = array.array(type, range(5))
|
||||
del a[1::-2]
|
||||
vereq(a, array.array(type, [0,2,3,4]))
|
||||
a = array.array(type, range(10))
|
||||
del a[::1000]
|
||||
vereq(a, array.array(type, [1,2,3,4,5,6,7,8,9]))
|
||||
# assignment
|
||||
a = array.array(type, range(10))
|
||||
a[::2] = array.array(type, [-1]*5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue