[Python-Dev] PEP 285: Adding a bool type
Tim Peters
tim.one at comcast.net
Wed Apr 3 15:27:13 EST 2002
[pobrien at orbtech.com]
> How about operator.truth()? Has Tim changed his mind at all? Has Guido?
Guido change his mind? That's about as likely as Tim changing his <wink>.
Guido Pronounced on this and that's good enough for me. I'd still prefer
operator.truth() return 0/1, but this always was (as the PEP said from the
start) a "minor additional issue". People can learn to use int(bool(x))
when they need 0/1, and operator.truth() becomes dead weight.
More information about the Python-list
mailing list