[Python-checkins] python/dist/src/Doc/ref ref5.tex,1.89,1.90

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Sun Aug 21 14:23:13 CEST 2005


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15548/Doc/ref

Modified Files:
	ref5.tex 
Log Message:
Empty sets and frozensets are also false.


Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- ref5.tex	21 Aug 2005 09:41:21 -0000	1.89
+++ ref5.tex	21 Aug 2005 12:22:58 -0000	1.90
@@ -1021,9 +1021,9 @@
 
 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.



More information about the Python-checkins mailing list