
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 ;-). -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Consulting & Company: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/

I just tried (1,2,3) == [1,2,3] and found that the compare returns false. Is that intended ?
Yes. --Guido van Rossum (home page: http://www.python.org/~guido/)

Guido van Rossum wrote:
I presume that means "...and we're not going to change it." ;-) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Consulting & Company: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/

I just tried (1,2,3) == [1,2,3] and found that the compare returns false. Is that intended ?
Yes. --Guido van Rossum (home page: http://www.python.org/~guido/)

Guido van Rossum wrote:
I presume that means "...and we're not going to change it." ;-) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Consulting & Company: http://www.egenix.com/ Python Software: http://www.lemburg.com/python/
participants (2)
-
Guido van Rossum
-
M.-A. Lemburg