From 6cd5377c72ec7e7c649b07b38c7ebca4d8120a93 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 21 Aug 2005 12:22:58 +0000 Subject: [PATCH] Empty sets and frozensets are also false. --- Doc/ref/ref5.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index 458ff0fcf2b..3d30cdc0015 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.