[Tutor] Another assert() question

bob gailer bgailer at gmail.com
Mon Jul 14 00:57:33 CEST 2008


When all else fails RTFM:

5.10 Boolean operations
....
"In the context of Boolean operations, and also when expressions are 
used by control flow statements, the following values are interpreted as 
false: |False|, |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."

-- 
Bob Gailer
919-636-4239 Chapel Hill, NC



More information about the Tutor mailing list