mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add extend() method. A small New Year's present from Jean-Claude Wippler.
This commit is contained in:
parent
60adb362df
commit
638d7f14f8
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue