Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 33688:af300403edb8 legacy-trunk
SF patch #1041364: True/False instead of 1/0 in libstdtypes.tex
(Contributed by Gerrit Holl. Reviewed by Jeff Epler.)
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Fri, 08 Oct 2004 01:52:15 +0000 |
| parents | 5570fae1f01c |
| children | eb979c3f14ba |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Thu Oct 07 21:10:08 2004 +0000 +++ b/Doc/lib/libstdtypes.tex Fri Oct 08 01:52:15 2004 +0000 @@ -451,9 +451,9 @@ and \var{j} are integers: \begin{tableiii}{c|l|c}{code}{Operation}{Result}{Notes} - \lineiii{\var{x} in \var{s}}{\code{1} if an item of \var{s} is equal to \var{x}, else \code{0}}{(1)} - \lineiii{\var{x} not in \var{s}}{\code{0} if an item of \var{s} is -equal to \var{x}, else \code{1}}{(1)} + \lineiii{\var{x} in \var{s}}{\code{True} if an item of \var{s} is equal to \var{x}, else \code{False}}{(1)} + \lineiii{\var{x} not in \var{s}}{\code{False} if an item of \var{s} is +equal to \var{x}, else \code{True}}{(1)} \hline \lineiii{\var{s} + \var{t}}{the concatenation of \var{s} and \var{t}}{(6)} \lineiii{\var{s} * \var{n}\textrm{,} \var{n} * \var{s}}{\var{n} shallow copies of \var{s} concatenated}{(2)}
