[Python-Dev] ACCEPTED: PEP 285
Delaney, Timothy
tdelaney at avaya.com
Wed Apr 3 23:41:31 EST 2002
> From: Andrew Koenig [mailto:ark at research.att.com]
>
> I'd like to suggest that comparisons with True are not only
> unnecessary but dangerous. Comparisons with False are much
> less dangerous but still unnecessary.
Dangerous was the word I thought of first, but thought "may give incorrect
results" was better.
Comparing with False is just as dangerous as comparing with True ... after
all,
if [] == False:
do_something
will not do anything ...
Tim Delaney
More information about the Python-list
mailing list