mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -196,8 +196,6 @@ class CommonTest(unittest.TestCase):
|
|||
self.assertEqual(a[ -pow(2,128): 3 ], self.type2test([0,1,2]))
|
||||
self.assertEqual(a[ 3: pow(2,145) ], self.type2test([3,4]))
|
||||
|
||||
self.assertRaises(TypeError, u.__getslice__)
|
||||
|
||||
def test_contains(self):
|
||||
u = self.type2test([0, 1, 2])
|
||||
for i in u:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue