PyWart: More surpises via "implict conversion to boolean" (and other steaming piles!)

Chris Angelico rosuav at gmail.com
Mon Feb 10 17:30:09 EST 2014


On Tue, Feb 11, 2014 at 5:45 AM, Rick Johnson
<rantingrickjohnson at gmail.com> wrote:
> if foo: # <- forgot parenthesis!
>     print 'implicit conversion to bool bites!'

You also forgot the parentheses on the second line, and that's nothing
to do with boolification :)

ChrisA



More information about the Python-list mailing list