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:
Guido van Rossum 1998-12-22 13:50:33 +00:00
parent fdd302820e
commit 7ea1d972d1
6 changed files with 45 additions and 27 deletions

View file

@ -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):