mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
remove some __getslice__
This commit is contained in:
parent
933d3731de
commit
838c7b3619
2 changed files with 1 additions and 7 deletions
|
@ -139,8 +139,6 @@ class SubPattern:
|
|||
return self.data[index]
|
||||
def __setitem__(self, index, code):
|
||||
self.data[index] = code
|
||||
def __getslice__(self, start, stop):
|
||||
return SubPattern(self.pattern, self.data[start:stop])
|
||||
def insert(self, index, code):
|
||||
self.data.insert(index, code)
|
||||
def append(self, code):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue