mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
SF bug #749759: comparisons yield bool not int
Minor documentation fix.
This commit is contained in:
parent
24d7e0cbb8
commit
b268f03459
1 changed files with 1 additions and 1 deletions
|
@ -817,7 +817,7 @@ interpretation that is conventional in mathematics:
|
|||
\productioncont{| "is" ["not"] | ["not"] "in"}
|
||||
\end{productionlist}
|
||||
|
||||
Comparisons yield integer values: \code{1} for true, \code{0} for false.
|
||||
Comparisons yield boolean values: \code{True} or \code{False}.
|
||||
|
||||
Comparisons can be chained arbitrarily, e.g., \code{x < y <= z} is
|
||||
equivalent to \code{x < y and y <= z}, except that \code{y} is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue