[Python-Dev] Re: PEP 285: Adding a bool type (original) (raw)
Andrew Koenig ark@research.att.com
03 Apr 2002 23:09:59 -0500
- Previous message: [Python-Dev] Re: PEP 285: Adding a bool type
- Next message: [Python-Dev] Re: PEP 285: Adding a bool type
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
No. That would break backwards compatibility. False==0, and True==1; everything else follows from that. (But False is not 0, and True is not 1!)
Ping> This is a strange distinction to make -- one that is not made in Ping> any other programming language i have ever encountered.
I would be very surprised if none of the Lisp family of languages has similar anomalies in the relationship between eq and equal.
-- Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark
- Previous message: [Python-Dev] Re: PEP 285: Adding a bool type
- Next message: [Python-Dev] Re: PEP 285: Adding a bool type
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]