PEP 285: Adding a bool type

Terry Reedy tejarex at yahoo.com
Sun Mar 31 19:49:13 EST 2002


"Tim Peters" <tim.one at comcast.net> wrote in message
news:mailman.1017597529.7660.python-list at python.org...
> [Ralph Corderoy, to Guido]
> > What do you think of `truth(x)' for all the good reasons listed
> > elsewhere in the thread?  You used truth yourself instead of
Boolean
> > above.
>
> Actually, he didn't.

Actually he did.  The 'above' quote Ralph is referring to is

    "IMO, bool(x) is the right way to "normalize" any value into a
    truth value."

Note the second to last word: 'truth', not 'Boolean'.  The point is
that if Guido spontaneously phrased it this way, the suggestion to go
with that phrasing is not completely crazy.

Terry J. Reedy






More information about the Python-list mailing list