diff options
author | Georg Brandl <georg@python.org> | 2005-08-21 12:22:58 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-21 12:22:58 (GMT) |
commit | 6cd5377c72ec7e7c649b07b38c7ebca4d8120a93 (patch) | |
tree | eba8ec8aca1c25a0ce212effab7d68e4bbd400f5 /Doc/ref | |
parent | 1823ae7e36c595e221cf21e10cb4380f0ce4ba69 (diff) | |
download | cpython-6cd5377c72ec7e7c649b07b38c7ebca4d8120a93.zip cpython-6cd5377c72ec7e7c649b07b38c7ebca4d8120a93.tar.gz cpython-6cd5377c72ec7e7c649b07b38c7ebca4d8120a93.tar.bz2 |
Empty sets and frozensets are also false.
Diffstat (limited to 'Doc/ref')
-rw-r--r-- | Doc/ref/ref5.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index 458ff0f..3d30cdc 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -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{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, and empty +strings and containers (including strings, tuples, lists, dictionaries, +sets and frozensets). All other values are interpreted as true. The operator \keyword{not} yields \code{True} if its argument is false, \code{False} otherwise. |