diff options
author | Guido van Rossum <guido@python.org> | 1999-01-06 12:49:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-06 12:49:24 (GMT) |
commit | 638d7f14f8482ec96e232e4c7394b1124afefe05 (patch) | |
tree | 780e5a43a4aa9a9e8978d0ef51d910d343f8d2f7 /Lib | |
parent | 60adb362df847702ae6f5b48533446fa06911500 (diff) | |
download | cpython-638d7f14f8482ec96e232e4c7394b1124afefe05.zip cpython-638d7f14f8482ec96e232e4c7394b1124afefe05.tar.gz cpython-638d7f14f8482ec96e232e4c7394b1124afefe05.tar.bz2 |
Add extend() method. A small New Year's present from Jean-Claude Wippler.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/UserList.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/UserList.py b/Lib/UserList.py index 1d5065f..93e4a7e 100644 --- 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) |