diff options
author | Guido van Rossum <guido@python.org> | 1998-06-30 15:40:05 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-06-30 15:40:05 +0000 |
commit | bf0db032cd37669e8ccaba0005ab69ffb991e31c (patch) | |
tree | 4473d95a5bbf138f755a54728e3c177243dbc627 /Lib/UserList.py | |
parent | 3dd7f3fef02fccfba2f311ca9f91c409426c311f (diff) | |
download | cpython-git-bf0db032cd37669e8ccaba0005ab69ffb991e31c.tar.gz |
Add pop method.
Diffstat (limited to 'Lib/UserList.py')
-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 1f19ad9c46..5dfd182807 100644 --- a/Lib/UserList.py +++ b/Lib/UserList.py @@ -43,6 +43,7 @@ class UserList: __rmul__ = __mul__ def append(self, item): self.data.append(item) def insert(self, i, item): self.data.insert(i, item) + def pop(self, i=-1): return self.data.pop(i) def remove(self, item): self.data.remove(item) def count(self, item): return self.data.count(item) def index(self, item): return self.data.index(item) |