A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-December/018894.html below:

[Python-Dev] Comparing sequences ?!

[Python-Dev] Comparing sequences ?! [Python-Dev] Comparing sequences ?!M.-A. Lemburg mal@lemburg.com
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 ;-).

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4