[Python-Dev] Re: PEP 285: Adding a bool type
Magnus Lie Hetland
mlh at vier.idi.ntnu.no
Fri Apr 5 23:44:45 EST 2002
In article <7xu1qsnk5j.fsf at ruckus.brouhaha.com>, Paul Rubin wrote:
[snip]
>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
10**2 == 10**2 10**2 is not 10**2
This doesn't necessarily have to do with types... Object identity
isn't that important here, I think.
>I felt better about the PEP after Guido pointed this out.
--
Magnus Lie Hetland The Anygui Project
http://hetland.org http://anygui.org
More information about the Python-list
mailing list