[Python-Dev] For review: PEP 285: Adding a bool type
Tim Peters
tim.one@comcast.net
2002年3月10日 02:30:48 -0500
[Samuele Pedroni]
> Btw given that probably operator.truth() will
> become a synonym of bool() the "# or" comment
> does not apply.
I don't see anything about changing operator.truth() in Guido's PEP, and
would be surprised if I did: it's been the documented purpose of that
function to return 0 or 1 since 1996, and there's no apparent reason to
change it. If you want a similar function to return True or False instead,
well, that's what the new bool() would do, and TOOWTDI.
> Tim, should we start to be worried about the problems you have to get
> those things right or are you just in very-low-concetration mode?
I'm in no-concentration mode, and, yes, you should pray for me before going
to sleep, upon waking, before meals, and once for each tooth that gets
brushed. I'll let you know whether it helps! Thanks in advance.