summaryrefslogtreecommitdiffstats
path: root/Lib/sets.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-20 21:51:59 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-20 21:51:59 (GMT)
commitc9196bc88d4ed6bd808635fe7f64893cdb3cc704 (patch)
treebdf453f028945a26640a4135de9098cd57e1d598 /Lib/sets.py
parent5033b36c442c7a2d2c3637b7d8da16666c1a21ea (diff)
downloadcpython-c9196bc88d4ed6bd808635fe7f64893cdb3cc704.zip
cpython-c9196bc88d4ed6bd808635fe7f64893cdb3cc704.tar.gz
cpython-c9196bc88d4ed6bd808635fe7f64893cdb3cc704.tar.bz2
Rename popitem() to pop(). (An idea from SF patch 597444.)
Diffstat (limited to 'Lib/sets.py')
-rw-r--r--Lib/sets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sets.py b/Lib/sets.py
index c301c41..0512846 100644
--- a/Lib/sets.py
+++ b/Lib/sets.py
@@ -420,7 +420,7 @@ class Set(BaseSet):
except KeyError:
pass
- def popitem(self):
+ def pop(self):
"""Remove and return a randomly-chosen set element."""
return self._data.popitem()[0]