Comparing lists

eliasf efotinis at oohay.com
Mon Aug 16 13:06:30 CEST 2010


On Mon, 16 Aug 2010 13:46:07 +0300, Francesco Bochicchio <bieffe62 at gmail.com> wrote:

> anybody can point me to a description of how the default comparison of
> list objects (or other iterables) works?

Sequences of the same type are compared using lexicographical ordering:
http://docs.python.org/tutorial/datastructures.html#comparing-sequences-and-other-types



More information about the Python-list mailing list