[New-bugs-announce] [issue4638] 1 is 1 is allways true while 1.0 is 1.0 may sometimes be true
Hatem
report at bugs.python.org
Fri Dec 12 02:46:02 CET 2008
New submission from Hatem <hnassrat at gmail.com>:
In [29]: a,b = 1.0,1.0
In [30]: a is b
Out[30]: True
In [31]: a = 1.0
In [32]: b = 1.0
In [33]: a is b
Out[33]: False
# ?!?
----------
components: Interpreter Core
messages: 77654
nosy: nassrat
severity: normal
status: open
title: 1 is 1 is allways true while 1.0 is 1.0 may sometimes be true
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4638>
_______________________________________
More information about the New-bugs-announce
mailing list