Seemingly odd 'is' comparison.

Tobiah toby at tobiah.org
Wed Feb 13 17:19:48 EST 2008


>>> print float(3.0) is float(3.0)
True
>>> print float(3.0 * 1.0) is float(3.0)
False
>>>     


Thanks,

Tobiah

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list