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

Guido van Rossum guido at python.org
Thu Apr 4 09:37:14 EST 2002


Paul Rubin wrote:
> Python already has a bunch of eq but not equal numeric types:
> 
>   1 == 1L      1 is not 1L
>   1 == 1.0     1 is not 1.0
>   1 == 1+0j    1 is not 1+0j

In addition, Python has always had

    (1==1) == 1  (1==1) is not 1

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list