mirror of
https://github.com/python/cpython
synced 2026-09-29 09:40:29 +03:00
Mention explicitly the False is considered false.
This commit is contained in:
parent
7638249646
commit
b285974c00
1 changed files with 3 additions and 3 deletions
|
|
@ -1021,9 +1021,9 @@ Boolean operations have the lowest priority of all Python operations:
|
|||
|
||||
In the context of Boolean operations, and also when expressions are
|
||||
used by control flow statements, the following values are interpreted
|
||||
as false: \code{None}, numeric zero of all types, empty sequences
|
||||
(strings, tuples and lists), and empty mappings (dictionaries). All
|
||||
other values are interpreted as true.
|
||||
as false: \code{False}, \code{None}, numeric zero of all types, empty
|
||||
sequences (strings, tuples and lists), and empty mappings (dictionaries).
|
||||
All other values are interpreted as true.
|
||||
|
||||
The operator \keyword{not} yields \code{True} if its argument is false,
|
||||
\code{False} otherwise.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue