On Thu, Apr 9, 2009 at 2:59 AM, Peter Otten wrote:
> Lawrence D'Oliveiro wrote:
>> This is why conditional constructs should not accept any values other than
>> True and False.
>
> So you think
>
> if test.find(item) == True: ...
>
> would have been better?

Clearly, any comparison with a boolean literal should be illegal.  ;)

-Miles

P.S. ... really, though.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to