mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
The usual.
# Message to all python-checkins readers: we have a problem with the # CVS mirroring software. You can't check out the latest changes yet. # We hope to have fixed this by noon EST today.
This commit is contained in:
parent
fdd302820e
commit
7ea1d972d1
6 changed files with 45 additions and 27 deletions
|
@ -19,7 +19,7 @@ class UserList:
|
|||
def __setitem__(self, i, item): self.data[i] = item
|
||||
def __delitem__(self, i): del self.data[i]
|
||||
def __getslice__(self, i, j):
|
||||
userlist = UserList()
|
||||
userlist = self.__class__()
|
||||
userlist.data[:] = self.data[i:j]
|
||||
return userlist
|
||||
def __setslice__(self, i, j, list):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue