while var, but var ==16 != true

bruno.desthuilliers at gmail.com bruno.desthuilliers at gmail.com
Mon Jul 14 12:40:51 EDT 2008


On 14 juil, 07:32, Tim Roberts <t... at probo.com> wrote:
(snip)
> Everything has a boolean value in
> Python.  0, None, False, '' (empty string), [] (empty list), () (empty
> tuple), and {} (empty dictionary) all have a False value.  Everything else
> has a True value.

Unless the author of the class specified it otherwise (implementing
the appropriate __magic_method__).




More information about the Python-list mailing list