[Python-Dev] Comparing sequences ?!
Thu, 06 Dec 2001 13:12:46 +0100
I just tried (1,2,3) == [1,2,3] and found that the compare
returns false. Is that intended ?
Background: 1.0 == 1 == 1L also works, so it seems natural
that comparing sequences of different types should work in the
same way. I would even expect a two iterators to compare equal
if they always return the same values (this could cause an endless
loop for some endless iterators ;-).
CEO eGenix.com Software GmbH
Consulting & Company: http://www.egenix.com/
Python Software: http://www.lemburg.com/python/