[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
- Previous message: [Python-Dev] For review: PEP 285: Adding a bool type
- Next message: [Python-Dev] PEP 282: A Logging System -- comments please
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message: [Python-Dev] For review: PEP 285: Adding a bool type
- Next message: [Python-Dev] PEP 282: A Logging System -- comments please
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]