summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-23 13:22:59 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-23 13:22:59 (GMT)
commit8b3d6ca3df1097752a1091b2c8f6d7de1b36a81d (patch)
treeec60709f51d570af30e96b431ea0f22a8e4584af /Doc
parent34b48e844e546df7c5939d2624f80624c23312ca (diff)
downloadcpython-8b3d6ca3df1097752a1091b2c8f6d7de1b36a81d.zip
cpython-8b3d6ca3df1097752a1091b2c8f6d7de1b36a81d.tar.gz
cpython-8b3d6ca3df1097752a1091b2c8f6d7de1b36a81d.tar.bz2
At the suggestion of Peter Funk, document 'key in dict' and 'key not
in dict' after has_key(), with a \versionadded{2.2} note.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstdtypes.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 62435fd..2d82c0e 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -867,15 +867,15 @@ arbitrary objects):
{(1)}
\lineiii{\var{a}.clear()}{remove all items from \code{a}}{}
\lineiii{\var{a}.copy()}{a (shallow) copy of \code{a}}{}
- \lineiii{\var{k} \code{in} \var{a}}
+ \lineiii{\var{a}.has_key(\var{k})}
{\code{1} if \var{a} has a key \var{k}, else \code{0}}
{}
+ \lineiii{\var{k} \code{in} \var{a}}
+ {Equivalent to \var{a}.has_key(\var{k})}
+ {\versionadded{2.2}}
\lineiii{\var{k} not in \var{a}}
- {\code{0} if \var{a} has a key \var{k}, else \code{1}}
- {}
- \lineiii{\var{a}.has_key(\var{k})}
- {Equivalent to \var{k} \code{in} \var{a}}
- {}
+ {Equivalent to \code{not} \var{a}.has_key(\var{k})}
+ {\versionadded{2.2}}
\lineiii{\var{a}.items()}
{a copy of \var{a}'s list of (\var{key}, \var{value}) pairs}
{(2)}