mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
SF patch #1041364: True/False instead of 1/0 in libstdtypes.tex
(Contributed by Gerrit Holl. Reviewed by Jeff Epler.)
This commit is contained in:
parent
7db385eef5
commit
77d110d6b8
1 changed files with 3 additions and 3 deletions
|
@ -451,9 +451,9 @@ This table lists the sequence operations sorted in ascending priority
|
|||
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)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue