summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-12 15:11:59 (GMT)
committerGuido van Rossum <guido@python.org>2002-04-12 15:11:59 (GMT)
commite027d9818fdb15dd40ab4fd259dd1a33300cc597 (patch)
treeb3039c5a6f6280d60f3725f4885ac46a2d12981b /Doc/lib
parentededa90f6779cfd7fdcf84306a98252913789a67 (diff)
downloadcpython-e027d9818fdb15dd40ab4fd259dd1a33300cc597.zip
cpython-e027d9818fdb15dd40ab4fd259dd1a33300cc597.tar.gz
cpython-e027d9818fdb15dd40ab4fd259dd1a33300cc597.tar.bz2
Add Raymond Hettinger's d.pop(). See SF patch 539949.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libstdtypes.tex3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index f42f84e..a619105 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -992,6 +992,9 @@ arbitrary objects):
{\code{\var{a}[\var{k}]} if \code{\var{k} in \var{a}},
else \var{x} (also setting it)}
{(5)}
+ \lineiii{\var{a}.pop(\var{k})}
+ {remove specified \var{key} and return corresponding \var{value}}
+ {}
\lineiii{\var{a}.popitem()}
{remove and return an arbitrary (\var{key}, \var{value}) pair}
{(6)}