Add extend() method. A small New Year's present from Jean-Claude Wippler.

This commit is contained in:
Guido van Rossum 1999-01-06 12:49:24 +00:00
parent 60adb362df
commit 638d7f14f8
1 changed files with 1 additions and 0 deletions

View File

@ -49,3 +49,4 @@ class UserList:
def index(self, item): return self.data.index(item)
def reverse(self): self.data.reverse()
def sort(self, *args): apply(self.data.sort, args)
def extend(self, list): self.data.extend(list)