[Python-Dev] For review: PEP 285: Adding a bool type

Tim Peters tim.one@comcast.net
Sun, 10 Mar 2002 02:35:45 -0500


[Tim]
> 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.

Although I see Guido's patch *does* change operator.truth in this way.  I
don't think it should.