On 2006-10-07, John Machin <[EMAIL PROTECTED]> wrote:
>
> MonkeeSage wrote:
>> On Oct 6, 8:02 pm, "MonkeeSage" <[EMAIL PROTECTED]> wrote:
>> > it is clearer to you to make the condition explicit ("blah not False"),
>>
>> "blah not False" -> "blah is False"
>
> Whichever way your team wants to interpret it, d00d.
>
> Please consider whether you should be writing "(blah is False)
> is True", that would be more explicit.

OK, now we're entering Daily WTF territory. ;)

And in the original case, I'd agree that "if X.has_key():" is
quite clear, already yielding a boolian value, and so doesn't
need to be tested for if it's False. But I wouldn't like to test
for an empty list or for None implicitly.

-- 
Neil Cerutti
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to