[Python-Dev] ACCEPTED: PEP 285

Gerald S. Williams gsw@agere.com
Thu, 4 Apr 2002 08:40:32 -0500

Interesting how the posts seem to be actually picking up. :-)

One concern about testing for "== True" is that it might push
newbies into using "is True" instead. Generally, "is True" is
even more dangerous than "== True" unless you're testing to
see if it's a boolean at all (in which case there should be a
test for "is False"), or doing something rather esoteric.


-O Gerald S. Williams, 55A-134A-E   : mailto:gsw@agere.com O-
-O AGERE SYSTEMS, 6755 SNOWDRIFT RD : office:610-712-8661  O-
-O ALLENTOWN, PA, USA 18106-9353    : mobile:908-672-7592  O-