[Fwd: Re: [Python-Dev] For review: PEP 285: Adding a bool type] (original) (raw)
David Ascher DavidA@ActiveState.com
Fri, 08 Mar 2002 14:33:54 -0800
- Previous message: [Python-Dev] For review: PEP 285: Adding a bool type
- Next message: [Python-Dev] For review: PEP 285: Adding a bool type
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[resent - forgot python-dev in my reply to guido]
Guido van Rossum wrote:
Absolutely not. I want True == 2 to be False.
Intersesting. so: operator.truth(2) would be True
but: 2 == True would be False
and: bool(2) would be True
Once again, casting, coercion, comparisons and truth value rear their fuzzy heads.
--david
- Previous message: [Python-Dev] For review: PEP 285: Adding a bool type
- Next message: [Python-Dev] For review: PEP 285: Adding a bool type
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]