We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

The and operator

The expression x and y first evaluates x; if x is false, its value is returned; otherwise, y is evaluated and the resulting value is returned.

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.

(Note that and does not restrict the value and type it returns to False and True, but rather return the last evaluated argument.)