Add extend() method. A small New Year's present from Jean-Claude Wippler.
This commit is contained in:
parent
60adb362df
commit
638d7f14f8
|
@ -49,3 +49,4 @@ class UserList:
|
||||||
def index(self, item): return self.data.index(item)
|
def index(self, item): return self.data.index(item)
|
||||||
def reverse(self): self.data.reverse()
|
def reverse(self): self.data.reverse()
|
||||||
def sort(self, *args): apply(self.data.sort, args)
|
def sort(self, *args): apply(self.data.sort, args)
|
||||||
|
def extend(self, list): self.data.extend(list)
|
||||||
|
|
Loading…
Reference in New Issue