Comparing lists

eliasf efotinis at oohay.com
Mon Aug 16 07:06:30 EDT 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