summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-30 15:40:05 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-30 15:40:05 (GMT)
commitbf0db032cd37669e8ccaba0005ab69ffb991e31c (patch)
tree4473d95a5bbf138f755a54728e3c177243dbc627 /Lib
parent3dd7f3fef02fccfba2f311ca9f91c409426c311f (diff)
downloadcpython-bf0db032cd37669e8ccaba0005ab69ffb991e31c.zip
cpython-bf0db032cd37669e8ccaba0005ab69ffb991e31c.tar.gz
cpython-bf0db032cd37669e8ccaba0005ab69ffb991e31c.tar.bz2
Add pop method.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/UserList.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/UserList.py b/Lib/UserList.py
index 1f19ad9..5dfd182 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)