diff options
author | Guido van Rossum <guido@python.org> | 2002-04-12 15:11:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-04-12 15:11:59 (GMT) |
commit | e027d9818fdb15dd40ab4fd259dd1a33300cc597 (patch) | |
tree | b3039c5a6f6280d60f3725f4885ac46a2d12981b /Doc/lib | |
parent | ededa90f6779cfd7fdcf84306a98252913789a67 (diff) | |
download | cpython-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.tex | 3 |
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)} |