[Python-checkins] r56698 - doctools/trunk/Doc-26/library/stdtypes.rst
mark.summerfield
python-checkins at python.org
Fri Aug 3 13:22:32 CEST 2007
Author: mark.summerfield
Date: Fri Aug 3 13:22:32 2007
New Revision: 56698
Modified:
doctools/trunk/Doc-26/library/stdtypes.rst
Log:
Added note and cross-reference to close sf bug 1760423.
(But can't close the bug because I don't know how.)
Modified: doctools/trunk/Doc-26/library/stdtypes.rst
==============================================================================
--- doctools/trunk/Doc-26/library/stdtypes.rst (original)
+++ doctools/trunk/Doc-26/library/stdtypes.rst Fri Aug 3 13:22:32 2007
@@ -562,6 +562,13 @@
| ``max(s)`` | largest item of *s* | |
+------------------+--------------------------------+----------+
+Sequence types also support comparisons. In particular, tuples and lists
+are compared lexicographically by comparing corresponding
+elements. This means that to compare equal, every element must compare
+equal and the two sequences must be of the same type and have the same
+length. (For full details see :ref:`comparisons` in the language
+reference.)
+
.. index::
triple: operations on; sequence; types
builtin: len
More information about the Python-checkins
mailing list