- ...In Python, like in C, any non-zero integer value is true; zero is false. The condition may also be a string or list value, in fact any sequence; anything with a non-zero length is true, empty sequences are false...
Truthy Statement:
- ...In Python, like in C, all integer values other than 1 are false: 1 == True is true, all others are false. The sequence statement is always false.
I hope this was the correct venue for sending in docs bugs. If not this page is not quite explicit enough for where this information needs to be logged.
If I am incorrect, please set me straight.
Ian