[Python-Dev] For review: PEP 285: Adding a bool type (original) (raw)

Barry A. Warsaw barry@zope.com
Fri, 8 Mar 2002 18:36:44 -0500


"GvR" == Guido van Rossum <guido@python.org> writes:

GvR> For the first time, we'll have a standard way to cast an
GvR> arbitrary value to a normalized truth value.  Currently we
GvR> write "not not x" for that.  Now *that* is ugly.

That's a huge benefit I hadn't thought of. I use that idiom often because it's a cheap substitute for the lack of a ?: statement. But it does confound a lot of people!

-Barry