projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60adb36
)
Add extend() method. A small New Year's present from Jean-Claude Wippler.
author
Guido van Rossum
<guido@python.org>
Wed, 6 Jan 1999 12:49:24 +0000
(12:49 +0000)
committer
Guido van Rossum
<guido@python.org>
Wed, 6 Jan 1999 12:49:24 +0000
(12:49 +0000)
Lib/UserList.py
patch
|
blob
|
history
diff --git
a/Lib/UserList.py
b/Lib/UserList.py
index 1d5065fa245627fae3c7d8328b7065745d51f93d..93e4a7e2114b007c03d418c9e4f0bb03eb240dff 100644
(file)
--- a/
Lib/UserList.py
+++ b/
Lib/UserList.py
@@
-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)