[Python-Dev] ACCEPTED: PEP 285

Magnus Lie Hetland mlh at vier.idi.ntnu.no
Fri Apr 5 22:51:33 EST 2002


In article <yu99lmc4drov.fsf at europa.research.att.com>, Andrew Koenig wrote:
[snip]
> I'd like to suggest that comparisons with True are not only
> unnecessary but dangerous.

Indeed.

> Comparisons with False are much less dangerous but still
> unnecessary.

Why do you consider them less dangerous? Using "foo==False" instead of
"not foo" will be just as wrong as using "foo==True" for "foo" as a
Boolean value...

>-- Andrew Koenig, ark at research.att.com,
>http://www.research.att.com/info/ark

--
Magnus Lie Hetland                                  The Anygui Project
http://hetland.org                                  http://anygui.org



More information about the Python-list mailing list