Implicit conversion to boolean in if and while statements

Chris Angelico rosuav at gmail.com
Tue Jul 17 06:24:09 CEST 2012


On Tue, Jul 17, 2012 at 2:18 PM, Ranting Rick
<rantingrickjohnson at gmail.com> wrote:
> On Jul 16, 11:11 pm, Steven D'Aprano <steve
> +comp.lang.pyt... at pearwood.info> wrote:
>
>> I imagine though that the Python dev's answer will basically be #2: "it
>> isn't a container, it just behaves a little bit like a container, except
>> when it doesn't" kinda thing.
>
> The emperor has no clothes!

The Troll's New Point.

ChrisA



More information about the Python-list mailing list