mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Remove the simple slicing API. All slicing is now done with slice objects.
This commit is contained in:
parent
582b586617
commit
d2cf20eea2
32 changed files with 78 additions and 810 deletions
|
|
@ -178,10 +178,8 @@ class CommonTest(seq_tests.CommonTest):
|
|||
a[:] = tuple(range(10))
|
||||
self.assertEqual(a, self.type2test(range(10)))
|
||||
|
||||
self.assertRaises(TypeError, a.__setslice__, 0, 1, 5)
|
||||
self.assertRaises(TypeError, a.__setitem__, slice(0, 1, 5))
|
||||
|
||||
self.assertRaises(TypeError, a.__setslice__)
|
||||
self.assertRaises(TypeError, a.__setitem__)
|
||||
|
||||
def test_delslice(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue