Implicit conversion to boolean in if and while statements

Chris Angelico rosuav at
Mon Jul 16 05:05:48 CEST 2012

On Mon, Jul 16, 2012 at 12:58 PM, Steven D'Aprano
<steve+comp.lang.python at> wrote:
> And that, the reason given in the sentence above, is the reason that we,
> collectively all programmers, should prefer to be explicit, not merely
> conveying meaning by implication about everything we, collectively all
> programmers, write, including typing, use of speech-recognition software,
> or any future technological process by which text or program code or both
> is transcribed from the idea of the human person to a permanent form
> recorded where other people, or non-human sentient beings, can read or
> otherwise gain access to it for the purpose of understanding the content
> of the test or program code or both.

I'd rather be booled in oil.

*ducks for cover*

More information about the Python-list mailing list