[BangPypers] Truth Tests (bool)

Ganesh Kumar bugcy013 at gmail.com
Wed Jan 11 05:09:35 CET 2012


HI.


> I think, usually we just test the empty list for it's False-ness.
> Isn't it?
>
> In [8]: x = []

In [9]: bool(x)
Out[9]: False


-Ganesh.


More information about the BangPypers mailing list